Marcus Meissner : hid: Increase buffer size to allow 16bit value + space + NUL (GCC7).
Alexandre Julliard
julliard at winehq.org
Fri Jun 2 17:03:28 CDT 2017
Module: wine
Branch: master
Commit: 0a2e48933d02131115f139765c6e9b0d2908719e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0a2e48933d02131115f139765c6e9b0d2908719e
Author: Marcus Meissner <meissner at suse.de>
Date: Fri Jun 2 10:47:03 2017 +0200
hid: Increase buffer size to allow 16bit value + space + NUL (GCC7).
Signed-off-by: Marcus Meissner <meissner at suse.de>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/hid/tests/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/hid/tests/device.c b/dlls/hid/tests/device.c
index a4c12ce..ef2f729 100644
--- a/dlls/hid/tests/device.c
+++ b/dlls/hid/tests/device.c
@@ -183,7 +183,7 @@ static void process_data(HIDP_CAPS Caps, PHIDP_PREPARSED_DATA ppd, CHAR *data, D
{
for (j=count; j < count+15 && j < usage_length; j++)
{
- CHAR btn[5];
+ CHAR btn[7];
sprintf(btn, "%i ", button_pages[j]);
strcat(report, btn);
}
More information about the wine-cvs
mailing list