mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
Remove MAXNAMLEN and use BUFSIZ instead.
-Erik
This commit is contained in:
parent
89bc256c94
commit
5d893b6beb
@ -345,7 +345,7 @@ static int list_item(const char *name)
|
|||||||
struct stat info;
|
struct stat info;
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
struct dirent *entry;
|
struct dirent *entry;
|
||||||
char fullname[MAXNAMLEN + 1], *fnend;
|
char fullname[BUFSIZ + 1], *fnend;
|
||||||
|
|
||||||
if (lstat(name, &info))
|
if (lstat(name, &info))
|
||||||
goto listerr;
|
goto listerr;
|
||||||
|
2
ls.c
2
ls.c
@ -345,7 +345,7 @@ static int list_item(const char *name)
|
|||||||
struct stat info;
|
struct stat info;
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
struct dirent *entry;
|
struct dirent *entry;
|
||||||
char fullname[MAXNAMLEN + 1], *fnend;
|
char fullname[BUFSIZ + 1], *fnend;
|
||||||
|
|
||||||
if (lstat(name, &info))
|
if (lstat(name, &info))
|
||||||
goto listerr;
|
goto listerr;
|
||||||
|
Loading…
Reference in New Issue
Block a user