[gdi,gfx] fix gfx dump variables and format string

This commit is contained in:
akallabeth 2024-06-05 23:15:22 +02:00
parent 66e4188514
commit 064a58912b
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -918,9 +918,9 @@ static void dump_cmd(const RDPGFX_SURFACE_COMMAND* cmd, UINT32 frameId)
static UINT64 xxx = 0;
const char* path = "/tmp/dump/";
WINPR_ASSERT(cmd);
char* fname[1024] = { 0 };
char fname[1024] = { 0 };
snprintf(fname, sizeof(fname), "%s/%08" PRIx32 ".raw", path, xxx++);
snprintf(fname, sizeof(fname), "%s/%08" PRIx64 ".raw", path, xxx++);
FILE* fp = fopen(fname, "w");
if (!fp)
return;