From b64e564492220b34c14f069e8e1f42675bd9abe6 Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Tue, 18 Jul 2017 22:44:33 +0900 Subject: sax: Check if it starts with 5 bytes of " Reviewed-by: Noel Grandin --- sax/source/expatwrap/xml2utf.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sax') diff --git a/sax/source/expatwrap/xml2utf.cxx b/sax/source/expatwrap/xml2utf.cxx index 18540c0ce1af..c12783f10cef 100644 --- a/sax/source/expatwrap/xml2utf.cxx +++ b/sax/source/expatwrap/xml2utf.cxx @@ -125,7 +125,7 @@ XMLFile2UTFConverter::~XMLFile2UTFConverter() void XMLFile2UTFConverter::removeEncoding( Sequence &seq ) { const sal_Int8 *pSource = seq.getArray(); - if( ! strncmp( reinterpret_cast(pSource), "(pSource), " &s return false; } - if( ! strncmp( reinterpret_cast(pSource), "(pSource), " &seq ) } // first level : detect possible file formats - if( ! strncmp( reinterpret_cast(pSource), "(pSource), "(pSource), seq.getLength() ); -- cgit v1.2.3