Fix an off by one error. MAXPATHLEN already has +1.
This commit is contained in:
parent
c68fcd13fa
commit
4e6fd1a485
@ -2467,7 +2467,7 @@ sigexit(td, sig)
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
static char corefilename[MAXPATHLEN+1] = {"%N.core"};
|
||||
static char corefilename[MAXPATHLEN] = {"%N.core"};
|
||||
SYSCTL_STRING(_kern, OID_AUTO, corefile, CTLFLAG_RW, corefilename,
|
||||
sizeof(corefilename), "process corefile name format string");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user