fastparser: strncmp needs a length.

This commit is contained in:
Michael Meeks 2013-11-26 17:39:26 +00:00
parent 9eaf15563a
commit d8db8ea918

View File

@ -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 );