summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2013-11-26 17:39:26 +0000
committerMichael Meeks <michael.meeks@collabora.com>2013-11-26 17:39:26 +0000
commitd8db8ea918faf1e1ea100de20d156725d9d51fc9 (patch)
tree7fa4e5a299988b173a585aa258328869f9bdc7fc /sax
parent9eaf15563ac51a802e3ce84af3ee49cedf4f4484 (diff)
fastparser: strncmp needs a length.
Diffstat (limited to 'sax')
-rw-r--r--sax/source/fastparser/fastparser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index a6bbfbb0fd66..afe9454605c7 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -950,7 +950,7 @@ void FastSaxParser::callbackStartElement( const XML_Char* pwName, const XML_Char
assert(awAttributes[i+1]);
if( awAttributes[i][0] != 'x' ||
- strcmp( awAttributes[i], "xmlns") != 0 )
+ strncmp( awAttributes[i], "xmlns", 5) != 0 )
continue;
splitName( awAttributes[i], pPrefix, nPrefixLen, pName, nNameLen );