Ian Lepore
1eafc07856
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-06 20:53:56 +00:00
2015-03-13 20:08:35 +00:00
2015-03-13 20:08:35 +00:00
2015-03-02 02:14:44 +00:00
2015-02-14 22:12:17 +00:00
2015-02-24 01:00:46 +00:00
2015-03-08 19:55:46 +00:00
2015-03-09 22:39:58 +00:00
2015-02-18 05:53:04 +00:00
2015-03-14 17:08:28 +00:00
2015-03-14 17:08:28 +00:00
2015-03-12 14:18:36 +00:00
2015-02-13 11:00:13 +00:00
2015-02-25 21:44:53 +00:00
2015-03-01 21:41:33 +00:00
2015-03-13 02:16:39 +00:00
2015-03-07 20:45:15 +00:00
2015-02-27 20:11:02 +00:00
2015-03-03 02:08:17 +00:00
2015-03-08 00:47:50 +00:00
2015-03-12 23:44:28 +00:00
2015-03-09 20:11:16 +00:00
2015-02-17 05:07:38 +00:00
2015-03-10 14:55:05 +00:00
2015-02-06 16:45:10 +00:00
2015-02-08 19:15:14 +00:00
2015-03-09 10:29:15 +00:00
2015-03-10 19:55:43 +00:00
2015-02-17 05:10:41 +00:00
2015-02-10 21:33:32 +00:00
2015-03-13 01:16:14 +00:00
2015-02-27 15:14:25 +00:00
2015-02-26 22:22:06 +00:00
2015-03-06 16:17:08 +00:00
2015-03-13 20:08:35 +00:00
2015-02-10 21:33:32 +00:00
2015-02-24 06:20:50 +00:00
2015-02-13 19:44:04 +00:00
2015-02-19 16:34:48 +00:00
2015-02-18 05:53:04 +00:00
2015-03-10 23:27:13 +00:00
2015-02-11 05:25:23 +00:00
2015-02-18 08:21:51 +00:00
2015-02-27 15:47:30 +00:00
2015-02-28 21:50:04 +00:00
2015-03-13 20:08:35 +00:00
2015-02-13 11:13:08 +00:00
2015-02-10 12:08:52 +00:00
2015-02-18 14:33:33 +00:00
2015-03-07 15:24:15 +00:00
2015-03-10 16:06:07 +00:00
2015-02-15 11:37:40 +00:00
2015-03-05 10:29:46 +00:00
2015-03-10 17:04:11 +00:00
2015-02-28 22:37:48 +00:00
2015-03-14 13:02:08 +00:00
2015-03-08 01:47:10 +00:00
2015-02-28 15:21:06 +00:00