Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/usbhidaction increase the size of a buffer by 1 byte.
details: https://anonhg.NetBSD.org/src/rev/3c8914dbdca2
branches: trunk
changeset: 378431:3c8914dbdca2
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Apr 13 02:07:35 2021 +0000
description:
increase the size of a buffer by 1 byte.
i think GCC 10 is right here.
diffstat:
usr.bin/usbhidaction/usbhidaction.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 96a05e9ab061 -r 3c8914dbdca2 usr.bin/usbhidaction/usbhidaction.c
--- a/usr.bin/usbhidaction/usbhidaction.c Tue Apr 13 01:50:46 2021 +0000
+++ b/usr.bin/usbhidaction/usbhidaction.c Tue Apr 13 02:07:35 2021 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index