mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(command.c) Silence warning in C89 build
This commit is contained in:
parent
136c08a4bb
commit
1233c9d0dc
@ -287,7 +287,7 @@ static bool command_read_ram(const char *arg)
|
||||
unsigned int alloc_size = 0;
|
||||
unsigned int addr = -1;
|
||||
|
||||
if (sscanf(arg, "%x %d", &addr, &nbytes) != 2)
|
||||
if (sscanf(arg, "%x %u", &addr, &nbytes) != 2)
|
||||
return true;
|
||||
alloc_size = 40 + nbytes * 3; /* We alloc more than needed, saving 20 bytes is not really relevant */
|
||||
reply = (char*) malloc(alloc_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user