ian 0dd684d23f Set the SBUF_INCLUDENUL flag in sbuf_new_for_sysctl() so that sysctl
strings returned to userland include the nulterm byte.

Some uses of sbuf_new_for_sysctl() write binary data rather than strings;
clear the SBUF_INCLUDENUL flag after calling sbuf_new_for_sysctl() in
those cases.  (Note that the sbuf code still automatically adds a nulterm
byte in sbuf_finish(), but since it's not included in the length it won't
get copied to userland along with the binary data.)

Remove explicit adding of a nulterm byte in a couple places now that it
gets done automatically by the sbuf drain code.

PR:		195668
2015-03-14 17:08:28 +00:00
..
2015-03-13 02:49:55 +00:00
2015-01-23 21:08:24 +00:00
2015-03-02 19:14:58 +00:00
2015-03-12 20:14:48 +00:00
2015-03-01 00:22:16 +00:00
2015-02-02 16:07:07 +00:00
2014-12-27 07:07:37 +00:00