]> git.armaanb.net Git - sic.git/blobdiff - util.c
fixed a silly bug, reported by several people, including Mark Edgar
[sic.git] / util.c
diff --git a/util.c b/util.c
index 26953d0a879157c8b9232bf04977296660b413e6..8afa58f40544cfd0cf86be6ebb01c3aca4c2f3a2 100644 (file)
--- a/util.c
+++ b/util.c
@@ -49,7 +49,7 @@ strlcpy(char *to, const char *from, int l) {
 
 static char *
 eat(char *s, int (*p)(int), int r) {
-       while(s != '\0' && p(*s) == r)
+       while(*s != '\0' && p(*s) == r)
                s++;
        return s;
 }