summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-02-13 23:11:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-14 10:17:08 +0000
commit83284801a475a0ec1b98f02ee8ec46b259f35cb8 (patch)
treee39de3f6f6a371c9ff11e02d0136aff68dfb172c /sc
parent047913ea8f0cb8b03f78be0780c5e828be9ef323 (diff)
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 <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/qpro/qpro.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/qpro/qpro.cxx b/sc/source/filter/qpro/qpro.cxx
index 77dc5dca39fc..fc651eb8fed6 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;
}