diff options
-rw-r--r-- | coreutils/ls.c | 2 | ||||
-rw-r--r-- | ls.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index 8b9422ec6..75fa65421 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -345,7 +345,7 @@ static int list_item(const char *name) | |||
345 | struct stat info; | 345 | struct stat info; |
346 | DIR *dir; | 346 | DIR *dir; |
347 | struct dirent *entry; | 347 | struct dirent *entry; |
348 | char fullname[MAXNAMLEN + 1], *fnend; | 348 | char fullname[BUFSIZ + 1], *fnend; |
349 | 349 | ||
350 | if (lstat(name, &info)) | 350 | if (lstat(name, &info)) |
351 | goto listerr; | 351 | goto listerr; |
@@ -345,7 +345,7 @@ static int list_item(const char *name) | |||
345 | struct stat info; | 345 | struct stat info; |
346 | DIR *dir; | 346 | DIR *dir; |
347 | struct dirent *entry; | 347 | struct dirent *entry; |
348 | char fullname[MAXNAMLEN + 1], *fnend; | 348 | char fullname[BUFSIZ + 1], *fnend; |
349 | 349 | ||
350 | if (lstat(name, &info)) | 350 | if (lstat(name, &info)) |
351 | goto listerr; | 351 | goto listerr; |