summaryrefslogtreecommitdiffstats
path: root/soelim.c
diff options
context:
space:
mode:
Diffstat (limited to 'soelim.c')
-rw-r--r--soelim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/soelim.c b/soelim.c
index ba5e3678..77f69f9f 100644
--- a/soelim.c
+++ b/soelim.c
@@ -104,16 +104,16 @@ soelim_file(FILE *f, int flag)
}
walk = line + 3;
- if (!isspace(*walk) && ((flag & C_OPTION) == 0)) {
+ if (!isspace((unsigned char)*walk) && (flag & C_OPTION) == 0) {
printf("%s", line);
continue;
}
- while (isspace(*walk))
+ while (isspace((unsigned char)*walk))
walk++;
cp = walk;
- while (*cp != '\0' && !isspace(*cp))
+ while (*cp != '\0' && !isspace((unsigned char)*cp))
cp++;
*cp = 0;
if (cp < line + linelen)