aboutsummaryrefslogtreecommitdiff
path: root/bin/realpath
diff options
context:
space:
mode:
authorJohan Karlsson <johan@FreeBSD.org>2003-01-15 21:22:55 +0000
committerJohan Karlsson <johan@FreeBSD.org>2003-01-15 21:22:55 +0000
commitde216a83c249f840ed7ab77170e2f235aed2d937 (patch)
treed6bcf799cebe1ae46ef4875e0809bb5299e8bfd3 /bin/realpath
parent9bc01124e71ca3432979a6e4d508186d7cb2d602 (diff)
downloadsrc-de216a83c249f840ed7ab77170e2f235aed2d937.tar.gz
src-de216a83c249f840ed7ab77170e2f235aed2d937.zip
realpath(3) should use PATH_MAX instead of MAXPATHLEN according to POSIX.
This also reverts the PATH_MAX -> MAXPATHLEN part of rev 1.3 of src/bin/realpath/realpath.c Requested by: imp Reviewed by: imp, bde
Notes
Notes: svn path=/head/; revision=109331
Diffstat (limited to 'bin/realpath')
-rw-r--r--bin/realpath/realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/realpath/realpath.c b/bin/realpath/realpath.c
index 8b7177f7dc48..224e775e7df6 100644
--- a/bin/realpath/realpath.c
+++ b/bin/realpath/realpath.c
@@ -46,7 +46,7 @@ static void usage(void) __dead2;
int
main(int argc, char *argv[])
{
- char buf[MAXPATHLEN];
+ char buf[PATH_MAX];
char *p;
if (argc == 2) {