From: Anselm R Garbe Date: Fri, 2 Aug 2013 20:20:48 +0000 (+0200) Subject: fixed a silly bug, reported by several people, including Mark Edgar X-Git-Url: https://git.armaanb.net/?p=sic.git;a=commitdiff_plain;h=16c1c2df60735bf2ea3e9f5f1c6a3a1e0dd9f7f3 fixed a silly bug, reported by several people, including Mark Edgar --- diff --git a/util.c b/util.c index 26953d0..8afa58f 100644 --- 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; }