Module Name: src
Committed By: mrg
Date: Tue Apr 13 02:07:35 UTC 2021
Modified Files:
src/usr.bin/usbhidaction: usbhidaction.c
Log Message:
increase the size of a buffer by 1 byte.
i think GCC 10 is right here.
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/usr.bin/usbhidaction/usbhidaction.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/usbhidaction/usbhidaction.c
diff -u src/usr.bin/usbhidaction/usbhidaction.c:1.29 src/usr.bin/usbhidaction/usbhidaction.c:1.30
--- src/usr.bin/usbhidaction/usbhidaction.c:1.29 Tue May 15 01:41:29 2018
+++ src/usr.bin/usbhidaction/usbhidaction.c Tue Apr 13 02:07:35 2021
@@ -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
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;