diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-01 01:11:31 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-01-01 01:11:31 +0000 |
commit | 5b7e3a9724b6c0c22bfc1252fb3d31440e1cc46c (patch) | |
tree | 1739e39b5eb3e52ed0fc0f7fae86cf3d39e8985a /subreader.c | |
parent | 2c0c208fa3d8983a9ccf179d946f0057291b1754 (diff) | |
download | mpv-5b7e3a9724b6c0c22bfc1252fb3d31440e1cc46c.tar.bz2 mpv-5b7e3a9724b6c0c22bfc1252fb3d31440e1cc46c.tar.xz |
tail_space infinite loop fix by jeon_goon@lycos.co.kr
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3925 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.c')
-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'; |