Zero terminate empty sting in kdb_sysctl_available.
Approved by: sam (mentor) MFC after: 1 week
This commit is contained in:
parent
11d629ad3a
commit
38cc47efea
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user