sc/source/filter/qpro/qpro.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 83284801a475a0ec1b98f02ee8ec46b259f35cb8 Author: Markus Mohrhard <markus.mohrh...@collabora.co.uk> Date: Thu Feb 13 23:11:11 2014 +0100 fix QPro import filter, related #i41688# We desperately need a test document for this format. Change-Id: Ifd8e35bb3330c2b9d2443a3a0f18209001a4bdff Reviewed-on: https://gerrit.libreoffice.org/8037 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/filter/qpro/qpro.cxx b/sc/source/filter/qpro/qpro.cxx index 77dc5dca..fc651eb 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; }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits