wined3d: Fix stack buffer overrun in wined3d_debug_resource_access().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2018-02-20 23:59:38 +01:00 committed by Alexandre Julliard
parent 27ef844bd1
commit e1d4edab4e
1 changed files with 1 additions and 1 deletions

View File

@ -4150,7 +4150,7 @@ const char *debug_d3ddevicetype(enum wined3d_device_type device_type)
const char *wined3d_debug_resource_access(DWORD access)
{
char buf[91];
char buf[125];
buf[0] = '\0';
#define ACCESS_TO_STR(x) if (access & x) { strcat(buf, " | "#x); access &= ~x; }