summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/usbd/usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/usbd/usbd.c b/usr.sbin/usbd/usbd.c
index 06e7637..4252e0f 100644
--- a/usr.sbin/usbd/usbd.c
+++ b/usr.sbin/usbd/usbd.c
@@ -461,7 +461,7 @@ read_configuration(void)
exit(2);
}
strncpy(linez, line, len);
- linez[len+1] = '\0';
+ linez[len] = '\0';
/* find the end of the current word (is field), that's the
* start of the arguments
OpenPOWER on IntegriCloud