diff options
Diffstat (limited to 'pwd.c')
-rw-r--r-- | pwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"); |