diff options
Diffstat (limited to 'pwd.c')
-rw-r--r-- | pwd.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -24,11 +24,10 @@ | |||
24 | #include "internal.h" | 24 | #include "internal.h" |
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | #include <dirent.h> | 26 | #include <dirent.h> |
27 | #include <sys/param.h> | ||
28 | 27 | ||
29 | extern int pwd_main(int argc, char **argv) | 28 | extern int pwd_main(int argc, char **argv) |
30 | { | 29 | { |
31 | char buf[PATH_MAX + 1]; | 30 | char buf[BUFSIZ + 1]; |
32 | 31 | ||
33 | if (getcwd(buf, sizeof(buf)) == NULL) { | 32 | if (getcwd(buf, sizeof(buf)) == NULL) { |
34 | perror("get working directory"); | 33 | perror("get working directory"); |