diff sub/subreader.c @ 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 f46a80e9fe77
children 7e835c67cf86
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;