summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gconfig.c b/gconfig.c
index 636fcca..52e4e65 100644
--- a/gconfig.c
+++ b/gconfig.c
@@ -248,7 +248,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