Use PATH_MAX in preference in MAXPATHLEN.

This commit is contained in:
Warner Losh 2001-05-30 03:37:28 +00:00
parent fe8dce6c66
commit 92e331afed
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77463

View File

@ -43,6 +43,7 @@ static const char rcsid[] =
#endif /* not lint */
#include <sys/param.h>
#include <limits.h>
#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
@ -179,7 +180,7 @@ histcmd(argc, argv)
static int active = 0;
struct jmploc jmploc;
struct jmploc *volatile savehandler;
char editfile[MAXPATHLEN + 1];
char editfile[PATH_MAX];
FILE *efp;
#ifdef __GNUC__
/* Avoid longjmp clobbering */