Fixed Cppcheck format string warning
This commit is contained in:
parent
6c1ac1bd53
commit
930e7f7004
|
@ -13,7 +13,7 @@ static void unencode(const char *src, char *dest)
|
|||
if (*src == '+')
|
||||
*dest = ' ';
|
||||
else if (*src == '%') {
|
||||
int code;
|
||||
unsigned int code;
|
||||
if (sscanf(src+1, "%2x", &code) != 1)
|
||||
code = '?';
|
||||
*dest = code;
|
||||
|
|
Loading…
Reference in New Issue