diff options
| author | mrg <mrg@NetBSD.org> | 2021-04-13 02:07:35 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2021-04-13 02:07:35 +0000 |
| commit | 91f5ffd59348f948fb4786fbd192d2bea6b2ea0e (patch) | |
| tree | 8a5a646ebb562947dae803dd691b358975875d1d | |
| parent | 85c113657d00537d97967b0fe47cfd50239f3af0 (diff) | |
increase the size of a buffer by 1 byte.
i think GCC 10 is right here.
| -rw-r--r-- | usr.bin/usbhidaction/usbhidaction.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/usbhidaction/usbhidaction.c b/usr.bin/usbhidaction/usbhidaction.c index acee7388c91..5a04dc5bf98 100644 --- a/usr.bin/usbhidaction/usbhidaction.c +++ b/usr.bin/usbhidaction/usbhidaction.c @@ -1,4 +1,4 @@ -/* $NetBSD: usbhidaction.c,v 1.29 2018/05/15 01:41:29 jmcneill Exp $ */ +/* $NetBSD: usbhidaction.c,v 1.30 2021/04/13 02:07:35 mrg Exp $ */ /* * Copyright (c) 2000, 2002 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: usbhidaction.c,v 1.29 2018/05/15 01:41:29 jmcneill Exp $"); +__RCSID("$NetBSD: usbhidaction.c,v 1.30 2021/04/13 02:07:35 mrg Exp $"); #endif #include <stdio.h> @@ -240,7 +240,7 @@ parse_conf(const char *conf, report_desc_t repd, int reportid, int ignore) char *p; int line; char buf[SIZE], name[SIZE], value[SIZE], action[SIZE]; - char usagestr[SIZE], coll[SIZE]; + char usagestr[SIZE+1], coll[SIZE]; struct command *cmd, *cmds; struct hid_data *d; struct hid_item h; |
