[PATCH] hid: increase buffer size to allow 16bit value + space + NUL (GCC7)
Marcus Meissner
meissner at suse.de
Fri Jun 2 03:47:03 CDT 2017
Signed-off-by: Marcus Meissner <meissner at suse.de>
---
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 a4c12ce1fe..ef2f72975d 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);
}
--
2.13.0
More information about the wine-patches
mailing list