aboutsummaryrefslogtreecommitdiff
path: root/bin/pwd
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2001-05-30 03:28:29 +0000
committerWarner Losh <imp@FreeBSD.org>2001-05-30 03:28:29 +0000
commit91a086eaf523cb0973cd2661096c3b19aaba7a9c (patch)
tree6906fa954262590b28c28006b216985fa3e2fcf1 /bin/pwd
parent5782e272535a34d5d782027c1e11602e82edbff2 (diff)
downloadsrc-91a086eaf523cb0973cd2661096c3b19aaba7a9c.tar.gz
src-91a086eaf523cb0973cd2661096c3b19aaba7a9c.zip
PATH_MAX in preference to MAXPATHLEN.
Notes
Notes: svn path=/head/; revision=77460
Diffstat (limited to 'bin/pwd')
-rw-r--r--bin/pwd/pwd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c
index 886bbb983bd5..befb340c0812 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