diff options
-rw-r--r-- | subreader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subreader.c b/subreader.c index 612540e8c9..aca02e82d8 100644 --- a/subreader.c +++ b/subreader.c @@ -46,7 +46,7 @@ static int eol(char p) { /* Remove leading and trailing space */ static void trail_space(char *s) { int i = 0; - while (isspace(*s)) ++i; + while (isspace(s[i])) ++i; if (i) strcpy(s, s + i); i = strlen(s) - 1; while (i > 0 && isspace(s[i])) s[i--] = '\0'; |