summaryrefslogtreecommitdiffstats
path: root/bin/realpath
diff options
context:
space:
mode:
authorjohan <johan@FreeBSD.org>2003-01-15 21:22:55 +0000
committerjohan <johan@FreeBSD.org>2003-01-15 21:22:55 +0000
commit989f4676c5d1a4dae0ed653db77f75e968fc68a2 (patch)
treed6bcf799cebe1ae46ef4875e0809bb5299e8bfd3 /bin/realpath
parent7b1874978c2d6c3244991e9fb0e20f06d67c48ca (diff)
downloadFreeBSD-src-989f4676c5d1a4dae0ed653db77f75e968fc68a2.zip
FreeBSD-src-989f4676c5d1a4dae0ed653db77f75e968fc68a2.tar.gz
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
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 8b7177f..224e775 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) {
OpenPOWER on IntegriCloud