Mercurial > mplayer.hg
diff subreader.c @ 3924:9f18722fafe9
tail_space infinite loop fix by jeon_goon@lycos.co.kr
| author | arpi |
|---|---|
| date | Tue, 01 Jan 2002 01:11:31 +0000 |
| parents | 8baf42fa69b9 |
| children | 654419a9a228 |
line wrap: on
line diff
--- a/subreader.c Mon Dec 31 17:22:41 2001 +0000 +++ b/subreader.c Tue Jan 01 01:11:31 2002 +0000 @@ -46,7 +46,7 @@ /* 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';
