summaryrefslogtreecommitdiffstats
path: root/subreader.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-01 01:11:31 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-01-01 01:11:31 +0000
commit5b7e3a9724b6c0c22bfc1252fb3d31440e1cc46c (patch)
tree1739e39b5eb3e52ed0fc0f7fae86cf3d39e8985a /subreader.c
parent2c0c208fa3d8983a9ccf179d946f0057291b1754 (diff)
downloadmpv-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.c2
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';