diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-12 22:26:06 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-12 22:26:06 +0000 |
commit | 3cf52d19581b2077480e7d2e63010baa1f5399c1 (patch) | |
tree | d91b0cb332ebc976126e36a394655dde7a15d8b1 /coreutils/pwd.c | |
parent | 2ce1edcf544ac675e6762c9861a6b918401ea716 (diff) | |
download | busybox-w32-3cf52d19581b2077480e7d2e63010baa1f5399c1.tar.gz busybox-w32-3cf52d19581b2077480e7d2e63010baa1f5399c1.tar.bz2 busybox-w32-3cf52d19581b2077480e7d2e63010baa1f5399c1.zip |
More stuff...
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 @@ | |||
1 | #include "internal.h" | 1 | #include "internal.h" |
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | #include <dirent.h> | ||
3 | 4 | ||
4 | const char pwd_usage[] = "Print the current directory.\n"; | 5 | const char pwd_usage[] = "Print the current directory.\n"; |
5 | 6 | ||
6 | extern int | 7 | extern int |
7 | pwd_main(int argc, char * * argv) | 8 | pwd_main(int argc, char * * argv) |
8 | { | 9 | { |
9 | char buf[1024]; | 10 | char buf[NAME_MAX]; |
10 | 11 | ||
11 | if ( getcwd(buf, sizeof(buf)) == NULL ) { | 12 | if ( getcwd(buf, sizeof(buf)) == NULL ) { |
12 | perror("get working directory"); | 13 | perror("get working directory"); |