diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-08-13 19:58:01 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-08-13 19:58:01 (GMT) |
commit | 2f8273898808caf92e38348c7fb3b00610a6315f (patch) | |
tree | 1d6408218f5efe1d489c64550f7a215d6dd25bce /Modules/expat | |
parent | dffc1b8932d57c3a7d587b9571aac1c3a62e08f1 (diff) | |
download | cpython-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/expat')
-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: \ |