Include the nulterm byte in the sysctl string.
PR: 195668
This commit is contained in:
parent
dcdeb95f09
commit
657282e062
@ -292,7 +292,8 @@ sysctl_kern_console(SYSCTL_HANDLER_ARGS)
|
||||
int delete, error;
|
||||
struct sbuf *sb;
|
||||
|
||||
sb = sbuf_new(NULL, NULL, CNDEVPATHMAX * 2, SBUF_AUTOEXTEND);
|
||||
sb = sbuf_new(NULL, NULL, CNDEVPATHMAX * 2, SBUF_AUTOEXTEND |
|
||||
SBUF_INCLUDENUL);
|
||||
if (sb == NULL)
|
||||
return (ENOMEM);
|
||||
sbuf_clear(sb);
|
||||
|
Loading…
Reference in New Issue
Block a user