summaryrefslogtreecommitdiffstats
path: root/bin/ln/ln.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ln/ln.c')
-rw-r--r--bin/ln/ln.c3
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. */
OpenPOWER on IntegriCloud