Buffer for HIDPP_REFRESH_FLAGS_KIND not big enough

HIDPP_REFRESH_FLAGS_KIND action puts result into 7 bytes buffer and
later tries to access 8th element (with index 7). Make buffer bigger,
so 8th element will fit.

Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
Arkadiusz Miśkiewicz 2013-03-20 22:28:11 +01:00 committed by Richard Hughes
parent 28f396496a
commit 972acff145

View file

@ -560,7 +560,7 @@ hidpp_device_refresh (HidppDevice *device,
HIDPP_READ_LONG_REGISTER,
0xb5,
buf, 3,
buf, 7,
buf, 8,
error);
if (!ret)
goto out;