summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2020-05-18 08:52:40 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2020-05-18 08:52:40 +0000
commit098f70428d9570a7c5c1ca4ba2c0242eb1998ff9 (patch)
tree570cf36f98384e1d5a6caebbbf42dffce8b449ed /usr.sbin
parent10a22fefda90ea022cfafc621a7a1a229c2e67c3 (diff)
downloadsrc-test2-098f70428d9570a7c5c1ca4ba2c0242eb1998ff9.tar.gz
src-test2-098f70428d9570a7c5c1ca4ba2c0242eb1998ff9.zip
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bluetooth/hccontrol/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/bluetooth/hccontrol/util.c b/usr.sbin/bluetooth/hccontrol/util.c
index 354607cff22f..93dcbf2fda42 100644
--- a/usr.sbin/bluetooth/hccontrol/util.c
+++ b/usr.sbin/bluetooth/hccontrol/util.c
@@ -134,6 +134,7 @@ hci_hmode2str(int mode, char *buffer, int size)
int n;
memset(buffer, 0, size);
+ size--;
for (n = 0; n < SIZE(t); n++) {
int len = strlen(buffer);
@@ -347,6 +348,7 @@ hci_features2str(uint8_t *features, char *buffer, int size)
memset(buffer, 0, size);
len1 = 0;
+ size--;
for (n = 0; n < SIZE(t); n++) {
for (i = 0; i < SIZE(t[n]); i++) {
@@ -460,6 +462,7 @@ hci_le_features2str(uint8_t *features, char *buffer, int size)
memset(buffer, 0, size);
len1 = 0;
+ size--;
for (n = 0; n < SIZE(t); n++) {
for (i = 0; i < SIZE(t[n]); i++) {