Fix an off by one error. MAXPATHLEN already has +1.

This commit is contained in:
imp 2004-11-15 20:51:32 +00:00
parent c68fcd13fa
commit 4e6fd1a485

View File

@ -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");