1
0
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:
Stephan Uphoff 2004-10-21 01:11:25 +00:00
parent 8e8b31001c
commit f742a1edcd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=136734

View File

@ -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) {