diff options
author | Ian Lepore <ian@FreeBSD.org> | 2015-03-12 18:22:20 +0000 |
---|---|---|
committer | Ian Lepore <ian@FreeBSD.org> | 2015-03-12 18:22:20 +0000 |
commit | 9bc58e3d33b543ebf655b7d4634092e8021b4c4d (patch) | |
tree | 9ad9dfa400f65166b64149dea194665973143ceb /sys/dev/cxgbe/t4_l2t.c | |
parent | 0b9b8739c0b2c3d5fc10d30af83cc3222ad87aac (diff) |
Nullterminate strings returned via sysctl.
PR: 195668
Notes
Notes:
svn path=/head/; revision=279934
Diffstat (limited to 'sys/dev/cxgbe/t4_l2t.c')
-rw-r--r-- | sys/dev/cxgbe/t4_l2t.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/t4_l2t.c b/sys/dev/cxgbe/t4_l2t.c index cca1bf314b56..cb4a281fb47e 100644 --- a/sys/dev/cxgbe/t4_l2t.c +++ b/sys/dev/cxgbe/t4_l2t.c @@ -321,6 +321,7 @@ skip: mtx_unlock(&e->lock); } + sbuf_putc(&sb, 0); /* nullterm */ rc = sbuf_finish(sb); sbuf_delete(sb); |