d_namlen is BSD, not posix
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Feb 2013 19:51:50 +0000 (14:51 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Feb 2013 19:52:05 +0000 (14:52 -0500)
scripts/jlibtool.c

index eb2dad8..ac4251c 100644 (file)
@@ -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;
     }