diff options
author | Warner Losh <imp@FreeBSD.org> | 2001-05-29 17:27:56 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2001-05-29 17:27:56 +0000 |
commit | c215688fd2a0fb3382eca314fc09b139a0c14cc0 (patch) | |
tree | adab84e097d77072d3049e418797fbf28e4d6910 /bin | |
parent | 490cf636a946455d199505ff846a6715b2b52678 (diff) | |
download | src-c215688fd2a0fb3382eca314fc09b139a0c14cc0.tar.gz src-c215688fd2a0fb3382eca314fc09b139a0c14cc0.zip |
Use PATH_MAX in preference to MAXPATHLEN.
Also sort declarations per style(9) (big arrays come last) while I'm
in the area.
Notes
Notes:
svn path=/head/; revision=77404
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ln/ln.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ln/ln.c b/bin/ln/ln.c index e2dfbc1d011c..4e514d7b2444 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -50,6 +50,7 @@ static const char rcsid[] = #include <err.h> #include <errno.h> +#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -160,8 +161,8 @@ linkit(target, source, isdir) { struct stat sb; const char *p; - char path[MAXPATHLEN]; int ch, exists, first; + char path[PATH_MAX]; if (!sflag) { /* If target doesn't exist, quit now. */ |