diff options
author | imp <imp@FreeBSD.org> | 2004-11-15 20:51:32 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2004-11-15 20:51:32 +0000 |
commit | 4e6fd1a4854f65df0baed01635b971bc559cc7df (patch) | |
tree | f4371c8af0e3eb8e53da960acc14c6e91c283d07 | |
parent | c68fcd13faec7dc72a3cb7b97c998488ba4b9006 (diff) | |
download | FreeBSD-src-4e6fd1a4854f65df0baed01635b971bc559cc7df.zip FreeBSD-src-4e6fd1a4854f65df0baed01635b971bc559cc7df.tar.gz |
Fix an off by one error. MAXPATHLEN already has +1.
-rw-r--r-- | sys/kern/kern_sig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 3074950..a3513eb 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -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"); |