diff options
author | imp <imp@FreeBSD.org> | 2001-05-29 17:27:56 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-05-29 17:27:56 +0000 |
commit | bd38254e2edd7d3cf7daf140496f3e44ff42a3e7 (patch) | |
tree | 040f000009e64d82cf7d7307ae0a8187e1f2b4cf /bin/ln | |
parent | 0769bdabee5ef9d144ea17c35d99433a7e92dabc (diff) | |
download | FreeBSD-src-bd38254e2edd7d3cf7daf140496f3e44ff42a3e7.zip FreeBSD-src-bd38254e2edd7d3cf7daf140496f3e44ff42a3e7.tar.gz |
Use PATH_MAX in preference to MAXPATHLEN.
Also sort declarations per style(9) (big arrays come last) while I'm
in the area.
Diffstat (limited to 'bin/ln')
-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 e2dfbc1..4e514d7 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. */ |