mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-23 18:25:19 +00:00
Use PATH_MAX in preference in MAXPATHLEN.
This commit is contained in:
parent
fe8dce6c66
commit
92e331afed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77463
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue