diff --git a/util.c b/util.c index bdba718..2567812 100644 --- a/util.c +++ b/util.c @@ -61,7 +61,7 @@ trim(char *s) { char *e; e = s + strlen(s) - 1; - while(isspace(*e) && e > s) + while(e > s && isspace(*e)) e--; *(e + 1) = '\0'; }