diff --git a/sc/source/filter/qpro/qpro.cxx b/sc/source/filter/qpro/qpro.cxx index 9ec57571bad7..3752f7ce6e85 100644 --- a/sc/source/filter/qpro/qpro.cxx +++ b/sc/source/filter/qpro/qpro.cxx @@ -226,7 +226,7 @@ void ScQProReader::readString( OUString &rString, sal_uInt16 nLength ) sal_Char* pText = new sal_Char[ nLength + 1 ]; mpStream->Read( pText, nLength ); pText[ nLength ] = 0; - rString = OUString( pText, nLength, mpStream->GetStreamCharSet() ); + rString = OUString( pText, std::strlen(pText), mpStream->GetStreamCharSet() ); delete [] pText; }