diff options
Diffstat (limited to 'coreutils/pwd.c')
-rw-r--r-- | coreutils/pwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/pwd.c b/coreutils/pwd.c index 893ed1e15..2ad019d50 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c @@ -1,12 +1,13 @@ #include "internal.h" #include <stdio.h> +#include <dirent.h> const char pwd_usage[] = "Print the current directory.\n"; extern int pwd_main(int argc, char * * argv) { - char buf[1024]; + char buf[NAME_MAX]; if ( getcwd(buf, sizeof(buf)) == NULL ) { perror("get working directory"); |