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 73cf73d..53d8c1e 100644
--- a/gconfig.c
+++ b/gconfig.c
@@ -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