Mercurial > mplayer.hg
changeset 35232:57392a26365f
Fix typo that might have caused reading beyond the string end.
author | reimar |
---|---|
date | Thu, 01 Nov 2012 21:48:42 +0000 |
parents | 9fb45b9710cc |
children | 7f3dbf4bf1d5 |
files | sub/subreader.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sub/subreader.c Thu Nov 01 21:46:33 2012 +0000 +++ b/sub/subreader.c Thu Nov 01 21:48:42 2012 +0000 @@ -163,7 +163,7 @@ s++; if (*s == 'P' || *s == 'p') { s++; state = 2; continue; } /* found '<P' */ for (; *s != '>' && *s != '\0'; s++); /* skip remains of non-<P> TAG */ - if (s == '\0') + if (*s == '\0') break; s++; continue;