summaryrefslogtreecommitdiffstats
path: root/Modules/expat
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/expat')
-rw-r--r--Modules/expat/xmltok_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/expat/xmltok_impl.c b/Modules/expat/xmltok_impl.c
index 0ee57ab..f793a6b 100644
--- a/Modules/expat/xmltok_impl.c
+++ b/Modules/expat/xmltok_impl.c
@@ -1741,7 +1741,7 @@ PREFIX(updatePosition)(const ENCODING *enc,
const char *end,
POSITION *pos)
{
- while (ptr != end) {
+ while (ptr < end) {
switch (BYTE_TYPE(enc, ptr)) {
#define LEAD_CASE(n) \
case BT_LEAD ## n: \