From 16e9434927be6d833b4c4d6484ec41253ec70804 Mon Sep 17 00:00:00 2001 From: James Clark Date: Mon, 10 Nov 1997 12:43:24 +0000 Subject: [PATCH] Fix bug with ]]]> --- expat/xmltok/xmltok_impl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/expat/xmltok/xmltok_impl.c b/expat/xmltok/xmltok_impl.c index c736db05..efb0f380 100755 --- a/expat/xmltok/xmltok_impl.c +++ b/expat/xmltok/xmltok_impl.c @@ -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) -- 2.40.0