]> git.armaanb.net Git - sic.git/blobdiff - sic.c
fix undefined behaviour of using isspace ctype function
[sic.git] / sic.c
diff --git a/sic.c b/sic.c
index 774f357aff161655e710fd60d26e79be871d1d24..c1e428effa57a8675c123f100d122a1971a210a2 100644 (file)
--- a/sic.c
+++ b/sic.c
@@ -74,7 +74,7 @@ parsein(char *s) {
                return;
        }
        c = *++s;
-       if(c != '\0' && isspace(s[1])) {
+       if(c != '\0' && isspace((unsigned char)s[1])) {
                p = s + 2;
                switch(c) {
                case 'j':