Skip to content

Commit

Permalink
Fixed Cppcheck format string warning
Browse files Browse the repository at this point in the history
  • Loading branch information
danmar committed Jan 15, 2016
1 parent 6c1ac1b commit 930e7f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion democlient/democlient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 930e7f7

Please sign in to comment.