mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
Zero terminate empty sting in kdb_sysctl_available.
Approved by: sam (mentor) MFC after: 1 week
This commit is contained in:
parent
8e8b31001c
commit
f742a1edcd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136734
@ -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…
Reference in New Issue
Block a user