Use PATH_MAX in preference in MAXPATHLEN.

This commit is contained in:
imp 2001-05-30 03:37:28 +00:00
parent 91dc8bcc25
commit 4971126c49

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 */