summaryrefslogtreecommitdiffstats
path: root/Modules/expat
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-08-13 19:59:04 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-08-13 19:59:04 (GMT)
commit0c8110734a42d31396d0a30b289c3e817b72a3b5 (patch)
treea14e188c8f3adefa0b82e3cd126f8cbd46f15674 /Modules/expat
parent790da2383f272d462834d709cb14995acc0828a4 (diff)
downloadcpython-0c8110734a42d31396d0a30b289c3e817b72a3b5.zip
cpython-0c8110734a42d31396d0a30b289c3e817b72a3b5.tar.gz
cpython-0c8110734a42d31396d0a30b289c3e817b72a3b5.tar.bz2
Backport of r74435. Not merged/blocked w/ svnmerge.py as the tool is erroring out on me.
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: \