From bd38254e2edd7d3cf7daf140496f3e44ff42a3e7 Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 29 May 2001 17:27:56 +0000 Subject: Use PATH_MAX in preference to MAXPATHLEN. Also sort declarations per style(9) (big arrays come last) while I'm in the area. --- bin/ln/ln.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/ln') 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 #include +#include #include #include #include @@ -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. */ -- cgit v1.1