Commit 8d216ea2 authored by venaas's avatar venaas Committed by venaas
Browse files

hopefully removed some warnings

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@405 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent fcbc6140
......@@ -364,7 +364,7 @@ uint8_t hexdigit2int(char d) {
void unhex(char *s) {
char *t;
for (t = s; *t; s++) {
if (*t == '%' && isxdigit(t[1]) && isxdigit(t[2])) {
if (*t == '%' && isxdigit((int)t[1]) && isxdigit((int)t[2])) {
*s = 16 * hexdigit2int(t[1]) + hexdigit2int(t[2]);
t += 3;
} else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment