diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-08-13 19:59:04 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-08-13 19:59:04 (GMT) |
commit | 0c8110734a42d31396d0a30b289c3e817b72a3b5 (patch) | |
tree | a14e188c8f3adefa0b82e3cd126f8cbd46f15674 /Modules/expat/xmltok_impl.c | |
parent | 790da2383f272d462834d709cb14995acc0828a4 (diff) | |
download | cpython-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/xmltok_impl.c')
-rw-r--r-- | Modules/expat/xmltok_impl.c | 2 |
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: \ |