--- lib/xmltok_impl.c 2006/11/26 17:34:46 1.13
+++ lib/xmltok_impl.c 2008/06/13 13:18:44 1.15
@@ -1744,7 +1744,7 @@
const char *end,
POSITION *pos)
{
- while (ptr != end) {
+ while (ptr < end) {
switch (BYTE_TYPE(enc, ptr)) {
#define LEAD_CASE(n) \
case BT_LEAD ## n: \