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 == '+')
|
if (*src == '+')
|
||||||
*dest = ' ';
|
*dest = ' ';
|
||||||
else if (*src == '%') {
|
else if (*src == '%') {
|
||||||
int code;
|
unsigned int code;
|
||||||
if (sscanf(src+1, "%2x", &code) != 1)
|
if (sscanf(src+1, "%2x", &code) != 1)
|
||||||
code = '?';
|
code = '?';
|
||||||
*dest = code;
|
*dest = code;
|
||||||
|
|
Loading…
Reference in New Issue