summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2012-04-24 18:37:10 (GMT)
committerRemko Tronçon <git@el-tramo.be>2012-04-24 18:37:10 (GMT)
commitf4039e04a82be49acfb0aebadbfc4f4c231f3a05 (patch)
treed18e5de26ee5e701c7826f44e35d89f9f85bca1f /3rdParty/Expat/src/xmltok_impl.c
parentf52b5f87cf21c9cd8dea4ff1fad8fe5a32dbae80 (diff)
downloadswift-contrib-f4039e04a82be49acfb0aebadbfc4f4c231f3a05.zip
swift-contrib-f4039e04a82be49acfb0aebadbfc4f4c231f3a05.tar.bz2
Upgraded bundled Expat to 2.1.0.
Diffstat (limited to '3rdParty/Expat/src/xmltok_impl.c')
-rw-r--r--[-rwxr-xr-x]3rdParty/Expat/src/xmltok_impl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdParty/Expat/src/xmltok_impl.c b/3rdParty/Expat/src/xmltok_impl.c
index 1268819..9c2895b 100755..100644
--- a/3rdParty/Expat/src/xmltok_impl.c
+++ b/3rdParty/Expat/src/xmltok_impl.c
@@ -885,7 +885,7 @@ PREFIX(scanPercent)(const ENCODING *enc, const char *ptr, const char *end,
const char **nextTokPtr)
{
if (ptr == end)
- return -XML_TOK_PERCENT;
+ return XML_TOK_PARTIAL;
switch (BYTE_TYPE(enc, ptr)) {
CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
case BT_S: case BT_LF: case BT_CR: case BT_PERCNT:
@@ -1744,7 +1744,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: \