summaryrefslogtreecommitdiffstats
path: root/bin/pwd
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2001-05-30 03:28:29 +0000
committerimp <imp@FreeBSD.org>2001-05-30 03:28:29 +0000
commit1244169d81cf520b46d83bdda79a63382a1331c5 (patch)
treea6889cbb956f4e61efd48ef66df4ff70a53135d9 /bin/pwd
parent631844f68dab4d03b326f613c0f770774038584f (diff)
downloadFreeBSD-src-1244169d81cf520b46d83bdda79a63382a1331c5.zip
FreeBSD-src-1244169d81cf520b46d83bdda79a63382a1331c5.tar.gz
PATH_MAX in preference to MAXPATHLEN.
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 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
OpenPOWER on IntegriCloud