[Libreoffice-commits] core.git: sc/source
Caolán McNamara
caolanm at redhat.com
Fri Feb 14 11:19:36 CET 2014
sc/source/filter/qpro/qpro.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ffa3b434c1524404c3358bdf14cd662a7c88f134
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Feb 14 10:16:59 2014 +0000
belt-and-braces, check for short read
Change-Id: Iade0f68621f549895bd8fb8dc46c71c70aa5a13e
diff --git a/sc/source/filter/qpro/qpro.cxx b/sc/source/filter/qpro/qpro.cxx
index 3752f7c..5767634 100644
--- a/sc/source/filter/qpro/qpro.cxx
+++ b/sc/source/filter/qpro/qpro.cxx
@@ -224,7 +224,7 @@ bool ScQProReader::nextRecord()
void ScQProReader::readString( OUString &rString, sal_uInt16 nLength )
{
sal_Char* pText = new sal_Char[ nLength + 1 ];
- mpStream->Read( pText, nLength );
+ nLength = mpStream->Read(pText, nLength);
pText[ nLength ] = 0;
rString = OUString( pText, std::strlen(pText), mpStream->GetStreamCharSet() );
delete [] pText;
More information about the Libreoffice-commits
mailing list