Fixed Cppcheck format string warning

This commit is contained in:
Daniel Marjamäki 2016-01-15 09:45:47 +01:00
parent 6c1ac1bd53
commit 930e7f7004
1 changed files with 1 additions and 1 deletions

View File

@ -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;