[MPlayer-cvslog] r35326 - trunk/sub/subreader.c

reimar subversion at mplayerhq.hu
Thu Nov 1 22:48:42 CET 2012


Author: reimar
Date: Thu Nov  1 22:48:42 2012
New Revision: 35326

Log:
Fix typo that might have caused reading beyond the string end.

Modified:
   trunk/sub/subreader.c

Modified: trunk/sub/subreader.c
==============================================================================
--- trunk/sub/subreader.c	Thu Nov  1 22:46:33 2012	(r35325)
+++ trunk/sub/subreader.c	Thu Nov  1 22:48:42 2012	(r35326)
@@ -163,7 +163,7 @@ static subtitle *sub_read_line_sami(stre
 	    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;


More information about the MPlayer-cvslog mailing list