fixed a silly bug, reported by several people, including Mark Edgar

This commit is contained in:
Anselm R Garbe 2013-08-02 22:20:48 +02:00
parent fe525b3209
commit 16c1c2df60
1 changed files with 1 additions and 1 deletions

2
util.c
View File

@ -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;
}