summaryrefslogtreecommitdiff
path: root/navit/support/ezxml/ezxml.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/support/ezxml/ezxml.c')
-rw-r--r--navit/support/ezxml/ezxml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/support/ezxml/ezxml.c b/navit/support/ezxml/ezxml.c
index 4ade3a5f2..991268fd6 100644
--- a/navit/support/ezxml/ezxml.c
+++ b/navit/support/ezxml/ezxml.c
@@ -175,7 +175,7 @@ char *ezxml_decode(char *s, char **ent, char t)
}
for (s = r; ; ) {
- while (*s && *s != '&' && (*s != '%' || t != '%') && !isspace(*s)) s++;
+ while (*s && *s != '&' && (*s != '%' || t != '%') && !isspace((unsigned char)(*s))) s++;
if (! *s) break;
else if (t != 'c' && ! strncmp(s, "&#", 2)) { // character reference