]> granicus.if.org Git - libexpat/commitdiff
Fix bug with ]]]>
authorJames Clark <jjc@jclark.com>
Mon, 10 Nov 1997 12:43:24 +0000 (12:43 +0000)
committerJames Clark <jjc@jclark.com>
Mon, 10 Nov 1997 12:43:24 +0000 (12:43 +0000)
expat/xmltok/xmltok_impl.c

index c736db055443cae8e19261f22a1d6ab801a11129..efb0f380252ab1ee19c834152c9e654abfb31c43 100755 (executable)
@@ -588,8 +588,10 @@ int PREFIX(contentTok)(const ENCODING *enc, const char *ptr, const char *end,
     ptr += MINBPC;
     if (ptr == end)
       return XML_TOK_PARTIAL;
-    if (!CHAR_MATCHES(enc, ptr, '>'))
+    if (!CHAR_MATCHES(enc, ptr, '>')) {
+      ptr -= MINBPC;
       break;
+    }
     *nextTokPtr = ptr;
     return XML_TOK_INVALID;
   INVALID_CASES(ptr, nextTokPtr)