This commit is contained in:
Anselm R Garbe 2010-05-14 18:01:20 +01:00
parent 75d42255f2
commit 6af1b812ae

4
util.c
View File

@ -58,7 +58,7 @@ static char*
skip(char *s, char c) {
while(*s != c && *s != '\0')
s++;
if (*s != '\0')
if(*s != '\0')
*s++ = '\0';
return s;
}
@ -68,7 +68,7 @@ trim(char *s) {
char *e;
e = s + strlen(s) - 1;
while (isspace(*e) && e > s)
while(isspace(*e) && e > s)
e--;
*(e + 1) = '\0';
}