diff options
Diffstat (limited to 'Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf.c')
-rw-r--r-- | Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf.c b/Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf.c index 1491a025727..dedb9650b21 100644 --- a/Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf.c +++ b/Build/source/texk/cjkutils/cjkutils-4.8.3/hbf2gf/hbf.c @@ -378,7 +378,7 @@ match(reg const char *lp, reg const char *sp) lp++; sp++; } - return (*lp == '\0' || isspace(*lp)) && *sp == '\0'; + return (*lp == '\0' || isspace((unsigned char)*lp)) && *sp == '\0'; } #ifdef NO_STRDUP @@ -407,12 +407,12 @@ reg char *tp; prop = NEW(PROPERTY); tp = tmp; - while (*lp != '\0' && ! isspace(*lp)) + while (*lp != '\0' && ! isspace((unsigned char)*lp)) *tp++ = *lp++; *tp = '\0'; prop->prop_name = strdup(tmp); - while (*lp != '\0' && isspace(*lp)) + while (*lp != '\0' && isspace((unsigned char)*lp)) lp++; tp = tmp; @@ -423,9 +423,9 @@ reg char *tp; } else for (;;) { - while (*lp != '\0' && ! isspace(*lp)) + while (*lp != '\0' && ! isspace((unsigned char)*lp)) *tp++ = *lp++; - while (*lp != '\0' && isspace(*lp)) + while (*lp != '\0' && isspace((unsigned char)*lp)) lp++; if (*lp == '\0') break; @@ -765,9 +765,9 @@ static const char * skip_word(int n, const char *s) { for ( ; n > 0; n--) { - while (*s != '\0' && ! isspace(*s)) + while (*s != '\0' && ! isspace((unsigned char)*s)) s++; - while (*s != '\0' && isspace(*s)) + while (*s != '\0' && isspace((unsigned char)*s)) s++; } return s; @@ -869,7 +869,7 @@ get_line(char *buf, int len, FILE *f) } if (c == '\n' || c == '\r') { /* trim trailing space */ - while (bp > buf && isspace(*(bp-1))) + while (bp > buf && isspace((unsigned char)*(bp-1))) bp--; *bp = '\0'; return TRUE; |