diff options
Diffstat (limited to 'function.c')
-rw-r--r-- | function.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -92,10 +92,10 @@ subst_expand (o, text, subst, replace, slen, rlen, by_word, suffix_only) /* If we're substituting only by fully matched words, or only at the ends of words, check that this case qualifies. */ if ((by_word - && ((p > t && !isblank (p[-1])) - || (p[slen] != '\0' && !isblank (p[slen])))) + && ((p > t && !isblank ((unsigned char)p[-1])) + || (p[slen] != '\0' && !isblank ((unsigned char)p[slen])))) || (suffix_only - && (p[slen] != '\0' && !isblank (p[slen])))) + && (p[slen] != '\0' && !isblank ((unsigned char)p[slen])))) /* Struck out. Output the rest of the string that is no longer to be replaced. */ o = variable_buffer_output (o, subst, slen); @@ -235,7 +235,7 @@ lookup_function (table, s) for (; table->name != NULL; ++table) if (table->len <= len - && (isblank (s[table->len]) || s[table->len] == '\0') + && (isblank ((unsigned char)s[table->len]) || s[table->len] == '\0') && strneq (s, table->name, table->len)) return table; @@ -1274,7 +1274,7 @@ msdos_openpipe (int* pipedes, int *pidp, char *text) extern int dos_command_running, dos_status; /* Make sure not to bother processing an empty line. */ - while (isblank (*text)) + while (isblank ((unsigned char)*text)) ++text; if (*text == '\0') return 0; |