fastparser: strncmp needs a length.
This commit is contained in:
parent
9eaf15563a
commit
d8db8ea918
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user