diff options
author | Vladimir Kotal <Vladimir.Kotal@Oracle.COM> | 2015-09-21 21:07:28 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-09-24 17:25:25 +0200 |
commit | e7a68985d5b734890489a9d47f82210c384e8c3a (patch) | |
tree | 9a20e6782877e37815cc124ac5fd1c392fd4d80d /apps/rehash.c | |
parent | Restore the old interactive prompt. (diff) | |
download | openssl-e7a68985d5b734890489a9d47f82210c384e8c3a.tar.xz openssl-e7a68985d5b734890489a9d47f82210c384e8c3a.zip |
fix compilation on Solaris
Signed-off-by: Rich Salz <rsalz@akamai.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Diffstat (limited to 'apps/rehash.c')
-rw-r--r-- | apps/rehash.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/rehash.c b/apps/rehash.c index c8bfb05b78..dbaea10489 100644 --- a/apps/rehash.c +++ b/apps/rehash.c @@ -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); |