diff options
Diffstat (limited to 'archival/tar.c')
-rw-r--r-- | archival/tar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archival/tar.c b/archival/tar.c index 0fa09ff..6496231 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -40,6 +40,7 @@ #include <utime.h> #include <sys/types.h> #include <sys/sysmacros.h> +#include <sys/param.h> /* for PATH_MAX */ #ifdef BB_FEATURE_TAR_CREATE @@ -1041,7 +1042,7 @@ static void saveDirectory (const char *dirName, const struct stat *statbuf) DIR *dir; struct dirent *entry; int needSlash; - char fullName[NAME_MAX]; + char fullName[PATH_MAX + 1]; /* * Construct the directory name as used in the tar file by appending |