[PATCH] hid: increase buffer size to allow 16bit value + space + NUL (GCC7)

Aric Stewart aric at codeweavers.com
Fri Jun 2 09:03:45 CDT 2017


Signed-off-by: Aric Stewart <aric at codeweavers.com>

On 6/2/17 3:47 AM, Marcus Meissner wrote:
> 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);
>                       }
> 



More information about the wine-patches mailing list