aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-07-06 01:57:20 +0000
committerEric Andersen <andersen@codepoet.org>2000-07-06 01:57:20 +0000
commit5d893b6beb2a42c6c3bc0fd0b5447bcfc8a0f84c (patch)
tree831432f8d67017cb73beade969a7761fa9fc75ca
parent89bc256c9480a137a2286b5b16ff4207e35659e5 (diff)
downloadbusybox-5d893b6beb2a42c6c3bc0fd0b5447bcfc8a0f84c.tar.gz
Remove MAXNAMLEN and use BUFSIZ instead.
-Erik
-rw-r--r--coreutils/ls.c2
-rw-r--r--ls.c2
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)
struct stat info;
DIR *dir;
struct dirent *entry;
- char fullname[MAXNAMLEN + 1], *fnend;
+ char fullname[BUFSIZ + 1], *fnend;
if (lstat(name, &info))
goto listerr;
diff --git a/ls.c b/ls.c
index 8b9422ec6..75fa65421 100644
--- a/ls.c
+++ b/ls.c
@@ -345,7 +345,7 @@ static int list_item(const char *name)
struct stat info;
DIR *dir;
struct dirent *entry;
- char fullname[MAXNAMLEN + 1], *fnend;
+ char fullname[BUFSIZ + 1], *fnend;
if (lstat(name, &info))
goto listerr;