fastparser: strncmp needs a length.
This commit is contained in:
@@ -950,7 +950,7 @@ void FastSaxParser::callbackStartElement( const XML_Char* pwName, const XML_Char
|
|||||||
assert(awAttributes[i+1]);
|
assert(awAttributes[i+1]);
|
||||||
|
|
||||||
if( awAttributes[i][0] != 'x' ||
|
if( awAttributes[i][0] != 'x' ||
|
||||||
strcmp( awAttributes[i], "xmlns") != 0 )
|
strncmp( awAttributes[i], "xmlns", 5) != 0 )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
splitName( awAttributes[i], pPrefix, nPrefixLen, pName, nNameLen );
|
splitName( awAttributes[i], pPrefix, nPrefixLen, pName, nNameLen );
|
||||||
|
Reference in New Issue
Block a user