Fix bug with end of buffer after ) in prolog

This commit is contained in:
James Clark 1998-05-02 06:03:28 +00:00
parent fa8b616b9c
commit d40b82ff26

View file

@ -1007,7 +1007,7 @@ int PREFIX(prologTok)(const ENCODING *enc, const char *ptr, const char *end,
case BT_RPAR:
ptr += MINBPC;
if (ptr == end)
return XML_TOK_INVALID;
return XML_TOK_PARTIAL;
switch (BYTE_TYPE(enc, ptr)) {
case BT_AST:
*nextTokPtr = ptr + MINBPC;