summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorups <ups@FreeBSD.org>2004-10-21 01:11:25 +0000
committerups <ups@FreeBSD.org>2004-10-21 01:11:25 +0000
commit38cc47efeac74681bd2df1cbe61fcba824f57ea6 (patch)
treec6d320a4caabd4be18e69850ccfed70924fb8913 /sys
parent11d629ad3a698c0a014c69c10633429b6fffadd2 (diff)
downloadFreeBSD-src-38cc47efeac74681bd2df1cbe61fcba824f57ea6.zip
FreeBSD-src-38cc47efeac74681bd2df1cbe61fcba824f57ea6.tar.gz
Zero terminate empty sting in kdb_sysctl_available.
Approved by: sam (mentor) MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_kdb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_kdb.c b/sys/kern/subr_kdb.c
index 9b48d09..086205f 100644
--- a/sys/kern/subr_kdb.c
+++ b/sys/kern/subr_kdb.c
@@ -96,6 +96,8 @@ kdb_sysctl_available(SYSCTL_HANDLER_ARGS)
sz++;
avail = malloc(sz, M_TEMP, M_WAITOK);
p = avail;
+ *p = '\0';
+
SET_FOREACH(iter, kdb_dbbe_set) {
be = *iter;
if (be->dbbe_active == 0) {
OpenPOWER on IntegriCloud