Remove MAXNAMLEN and use BUFSIZ instead.
authorEric Andersen <andersen@codepoet.org>
Thu, 6 Jul 2000 01:57:20 +0000 (01:57 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 6 Jul 2000 01:57:20 +0000 (01:57 -0000)
 -Erik

coreutils/ls.c
ls.c

index 8b9422ec607b0fb0420719581391bb5565dc509c..75fa6542187118aaa0820ecd461afac90955de4c 100644 (file)
@@ -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 8b9422ec607b0fb0420719581391bb5565dc509c..75fa6542187118aaa0820ecd461afac90955de4c 100644 (file)
--- 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;