From 1233c9d0dcd952cb813f9b9f3d4543e07369f2e0 Mon Sep 17 00:00:00 2001 From: Hugo Hromic Date: Thu, 14 Mar 2019 16:09:51 +0000 Subject: [PATCH] (command.c) Silence warning in C89 build --- command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.c b/command.c index aefc2fe531..be515931d2 100755 --- a/command.c +++ b/command.c @@ -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);