Minor fix to isspace call, type cast to unsigned char
authorbjasspa <bjasspa@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 1 Jul 2012 13:20:26 +0000 (13:20 +0000)
committerbjasspa <bjasspa@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sun, 1 Jul 2012 13:20:26 +0000 (13:20 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5172 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/support/ezxml/ezxml.c

index 4ade3a5..991268f 100644 (file)
@@ -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