From 74bc01e03e96d5a6a318688d2ee8c620f32ce928 Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 7 Feb 2000 05:29:42 +0000 Subject: A few minor updates. ;-) Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik git-svn-id: svn://busybox.net/trunk/busybox@351 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- tar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tar.c') diff --git a/tar.c b/tar.c index 0fa09ffd8..6496231ae 100644 --- a/tar.c +++ b/tar.c @@ -40,6 +40,7 @@ #include #include #include +#include /* 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 -- cgit v1.2.3-55-g6feb