projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c9c243
)
fix compilation on Solaris
author
Vladimir Kotal
<Vladimir.Kotal@Oracle.COM>
Mon, 21 Sep 2015 19:07:28 +0000
(21:07 +0200)
committer
Rich Salz
<rsalz@openssl.org>
Thu, 24 Sep 2015 15:25:25 +0000
(11:25 -0400)
Signed-off-by: Rich Salz <rsalz@akamai.com>
Reviewed-by: Tim Hudson <tjh@openssl.org>
apps/rehash.c
patch
|
blob
|
history
diff --git
a/apps/rehash.c
b/apps/rehash.c
index c8bfb05b78200ea76629858002dce5149858da99..dbaea1048901c365743783669f86594ec89763ed 100644
(file)
--- 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);