projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
098e110
)
d_namlen is BSD, not posix
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 17 Feb 2013 19:51:50 +0000
(14:51 -0500)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 17 Feb 2013 19:52:05 +0000
(14:52 -0500)
scripts/jlibtool.c
patch
|
blob
|
history
diff --git
a/scripts/jlibtool.c
b/scripts/jlibtool.c
index
eb2dad8
..
ac4251c
100644
(file)
--- a/
scripts/jlibtool.c
+++ b/
scripts/jlibtool.c
@@
-2353,7
+2353,7
@@
static void cleanup_tmp_dir(const char *dirname)
if (dir == NULL)
return;
- if ((strlen(dirname) + 1 +
entry->d_namlen
) >= sizeof(fullname)) {
+ if ((strlen(dirname) + 1 +
strlen(entry->d_name)
) >= sizeof(fullname)) {
fprintf(stderr, "Dirname too long out of buffer space");
return;
}