diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2013-11-26 17:39:26 +0000 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-12-04 11:41:33 -0500 |
commit | 581686cd0f07b7ae6c6fb8b42c25d459f1c86402 (patch) | |
tree | 586e4f98ff6672bf53e031c9f923a53504c94a24 /sax | |
parent | b5b9a664f5fc04229a657167d7143bb9d3d7d899 (diff) |
fastparser: strncmp needs a length.
Conflicts:
sax/source/fastparser/fastparser.cxx
Change-Id: I11a92d59ca5e973ed79e6a799a2ca5fa532a2b65
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 1bfb15e6a439..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' || - strncmp( awAttributes[i], "xmlns") != 0 ) + strncmp( awAttributes[i], "xmlns", 5) != 0 ) continue; splitName( awAttributes[i], pPrefix, nPrefixLen, pName, nNameLen ); |