summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-08-13 19:58:01 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-08-13 19:58:01 (GMT)
commit2f8273898808caf92e38348c7fb3b00610a6315f (patch)
tree1d6408218f5efe1d489c64550f7a215d6dd25bce /Modules
parentdffc1b8932d57c3a7d587b9571aac1c3a62e08f1 (diff)
downloadcpython-2f8273898808caf92e38348c7fb3b00610a6315f.zip
cpython-2f8273898808caf92e38348c7fb3b00610a6315f.tar.gz
cpython-2f8273898808caf92e38348c7fb3b00610a6315f.tar.bz2
Backport of r77429. Not merged/blocked as svnmerge.py is not liking me right now.
Diffstat (limited to 'Modules')
-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: \