From d8db8ea918faf1e1ea100de20d156725d9d51fc9 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 26 Nov 2013 17:39:26 +0000 Subject: [PATCH] fastparser: strncmp needs a length. --- sax/source/fastparser/fastparser.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );