Nullterminate strings returned via sysctl.

PR:		195668
This commit is contained in:
ian 2015-03-12 18:09:39 +00:00
parent 037188bda9
commit 823ca56fd7

View File

@ -252,6 +252,7 @@ sysctl_wb_debug(SYSCTL_HANDLER_ARGS)
sbuf_printf(&sb, "CRF6 0x%02x ", sc->reg_timeout);
sbuf_printf(&sb, "CRF7 0x%02x", sc->reg_2);
sbuf_putc(&sb, 0); /* nullterm */
error = sbuf_finish(&sb);
sbuf_delete(&sb);
return (error);