aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cxgbe/t4_l2t.c
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2015-03-12 18:22:20 +0000
committerIan Lepore <ian@FreeBSD.org>2015-03-12 18:22:20 +0000
commit9bc58e3d33b543ebf655b7d4634092e8021b4c4d (patch)
tree9ad9dfa400f65166b64149dea194665973143ceb /sys/dev/cxgbe/t4_l2t.c
parent0b9b8739c0b2c3d5fc10d30af83cc3222ad87aac (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.c1
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);