aboutsummaryrefslogtreecommitdiffstats
path: root/src/Expat.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Expat.cxx')
-rw-r--r--src/Expat.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Expat.cxx b/src/Expat.cxx
index 0c7ff9315..82dce7682 100644
--- a/src/Expat.cxx
+++ b/src/Expat.cxx
@@ -73,9 +73,9 @@ const char *
ExpatParser::GetAttributeCase(const XML_Char **atts,
const char *name)
{
- for (unsigned i = 0; atts[i] != nullptr; ++i)
+ for (unsigned i = 0; atts[i] != nullptr; i += 2)
if (StringEqualsCaseASCII(atts[i], name))
- return atts[i] + strlen(name) + 1;
+ return atts[i + 1];
return nullptr;
}