提交 e7a68985 编写于 作者: V Vladimir Kotal 提交者: Rich Salz

fix compilation on Solaris

Signed-off-by: NRich Salz <rsalz@akamai.com>
Reviewed-by: NTim Hudson <tjh@openssl.org>
上级 1c9c2435
......@@ -199,7 +199,7 @@ static int handle_symlink(const char *filename, const char *fullpath)
unsigned int hash = 0;
int i, type, id;
unsigned char ch;
char linktarget[NAME_MAX], *endptr;
char linktarget[PATH_MAX], *endptr;
ssize_t n;
for (i = 0; i < 8; i++) {
......@@ -319,8 +319,7 @@ static int do_dir(const char *dirname, enum Hash h)
}
buflen = strlen(dirname);
pathsep = (buflen && dirname[buflen - 1] == '/') ? "" : "/";
buflen += NAME_MAX + 2;
buf = app_malloc(buflen, "filename buffer");
buf = app_malloc(PATH_MAX, "filename buffer");
if (verbose)
BIO_printf(bio_out, "Doing %s\n", dirname);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册