[Libreoffice-commits] core.git: sax/source

Stephan Bergmann sbergman at redhat.com
Tue Nov 26 08:31:51 PST 2013


 sax/source/fastparser/fastparser.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9eaf15563ac51a802e3ce84af3ee49cedf4f4484
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Nov 26 17:31:11 2013 +0100

    Presumably wants to use strcmp
    
    Change-Id: I978a692fbf464b476811b445b16c7e1b0eec9e25

diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 1bfb15e..a6bbfbb 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 )
+                strcmp( awAttributes[i], "xmlns") != 0 )
                 continue;
 
             splitName( awAttributes[i], pPrefix, nPrefixLen, pName, nNameLen );


More information about the Libreoffice-commits mailing list