diff options
Diffstat (limited to 'bin/pwd/pwd.c')
-rw-r--r-- | bin/pwd/pwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c index 886bbb9..befb340 100644 --- a/bin/pwd/pwd.c +++ b/bin/pwd/pwd.c @@ -46,6 +46,7 @@ static const char rcsid[] = #endif /* not lint */ #include <err.h> +#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -61,7 +62,7 @@ main(argc, argv) { int ch; char *p; - char buf[MAXPATHLEN]; + char buf[PATH_MAX]; /* * Flags for pwd are a bit strange. The POSIX 1003.2B/D9 document |