diff options
Diffstat (limited to 'sc/source/filter/lotus/op.cxx')
-rw-r--r-- | sc/source/filter/lotus/op.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/filter/lotus/op.cxx b/sc/source/filter/lotus/op.cxx index 56895530b5c4..9893dd3bd112 100644 --- a/sc/source/filter/lotus/op.cxx +++ b/sc/source/filter/lotus/op.cxx @@ -118,7 +118,7 @@ void OP_Label(LotusContext& rContext, SvStream& r, sal_uInt16 n) n -= (n > 5) ? 5 : n; std::unique_ptr<sal_Char[]> pText(new sal_Char[n + 1]); - r.Read( pText.get(), n ); + r.ReadBytes(pText.get(), n); pText[n] = 0; if (ValidColRow(nCol, nRow)) @@ -196,7 +196,7 @@ void OP_NamedRange(LotusContext& rContext, SvStream& r, sal_uInt16 /*n*/) sal_uInt16 nColSt, nRowSt, nColEnd, nRowEnd; sal_Char cPuffer[ 16+1 ]; - r.Read( cPuffer, 16 ); + r.ReadBytes(cPuffer, 16); cPuffer[ 16 ] = 0; r.ReadUInt16( nColSt ).ReadUInt16( nRowSt ).ReadUInt16( nColEnd ).ReadUInt16( nRowEnd ); @@ -235,7 +235,7 @@ void OP_SymphNamedRange(LotusContext& rContext, SvStream& r, sal_uInt16 /*n*/) sal_uInt8 nType; sal_Char cPuffer[ 16+1 ]; - r.Read( cPuffer, 16 ); + r.ReadBytes(cPuffer, 16); cPuffer[ 16 ] = 0; r.ReadUInt16( nColSt ).ReadUInt16( nRowSt ).ReadUInt16( nColEnd ).ReadUInt16( nRowEnd ).ReadUChar( nType ); @@ -357,7 +357,7 @@ void OP_Label123(LotusContext& rContext, SvStream& r, sal_uInt16 n) n -= (n > 4) ? 4 : n; std::unique_ptr<sal_Char[]> pText(new sal_Char[n + 1]); - r.Read( pText.get(), n ); + r.ReadBytes(pText.get(), n); pText[ n ] = 0; PutFormString(rContext, nCol, nRow, nTab, pText.get()); @@ -438,7 +438,7 @@ void OP_Note123(LotusContext& rContext, SvStream& r, sal_uInt16 n) n -= (n > 4) ? 4 : n; std::unique_ptr<sal_Char[]> pText(new sal_Char[n + 1]); - r.Read( pText.get(), n ); + r.ReadBytes(pText.get(), n); pText[ n ] = 0; OUString aNoteText(pText.get(), strlen(pText.get()), rContext.pLotusRoot->eCharsetQ); |