diff options
author | Eric Andersen | 1999-10-12 22:26:06 +0000 |
---|---|---|
committer | Eric Andersen | 1999-10-12 22:26:06 +0000 |
commit | 3cf52d19581b2077480e7d2e63010baa1f5399c1 (patch) | |
tree | d91b0cb332ebc976126e36a394655dde7a15d8b1 /pwd.c | |
parent | 2ce1edcf544ac675e6762c9861a6b918401ea716 (diff) | |
download | busybox-3cf52d19581b2077480e7d2e63010baa1f5399c1.zip busybox-3cf52d19581b2077480e7d2e63010baa1f5399c1.tar.gz |
More stuff...
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"); |