mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
NUL terminate sysctl kern.disks
This commit is contained in:
parent
c1623066ca
commit
aed99af2a3
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ sysctl_disks(SYSCTL_HANDLER_ARGS)
|
|||
do {
|
||||
tsleep(sb, PZERO, "kern.disks", hz);
|
||||
} while(!sbuf_done(sb));
|
||||
error = SYSCTL_OUT(req, sbuf_data(sb), sbuf_len(sb));
|
||||
error = SYSCTL_OUT(req, sbuf_data(sb), sbuf_len(sb) + 1);
|
||||
sbuf_delete(sb);
|
||||
return error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue