Remove MAXNAMLEN and use BUFSIZ instead.

-Erik
This commit is contained in:
Eric Andersen 2000-07-06 01:57:20 +00:00
parent 89bc256c94
commit 5d893b6beb
2 changed files with 2 additions and 2 deletions

View 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;

2
ls.c
View 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;