From 4a5550c8225d762f684d4047e20cc45274b6a785 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 7 Jun 2000 05:43:37 +0000 Subject: * Lots of bug fixes and cleanup; new i18n files, etc. --- misc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 6310f28..98dc7a9 100644 --- a/misc.c +++ b/misc.c @@ -120,7 +120,7 @@ collapse_continuations (line) if (backslash) { in = next_token (in); - while (out > line && isblank (out[-1])) + while (out > line && isblank ((unsigned char)out[-1])) --out; *out++ = ' '; } @@ -478,7 +478,7 @@ char * end_of_token (s) char *s; { - while (*s != '\0' && !isblank (*s)) + while (*s != '\0' && !isblank ((unsigned char)*s)) ++s; return s; } @@ -495,7 +495,8 @@ end_of_token_w32 (s, stopchar) register char *p = s; register int backslash = 0; - while (*p != '\0' && *p != stopchar && (backslash || !isblank (*p))) + while (*p != '\0' && *p != stopchar + && (backslash || !isblank ((unsigned char)*p))) { if (*p++ == '\\') { @@ -522,7 +523,7 @@ next_token (s) { register char *p = s; - while (isblank (*p)) + while (isblank ((unsigned char)*p)) ++p; return p; } -- cgit v1.2.3