diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-08 04:49:50 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-07-08 04:51:26 +0200 |
commit | 382b8bafd041edb2f44052e931e701e0ee626597 (patch) | |
tree | 337e20bd2517f694f0a9272d96ad318630a64d92 /sc | |
parent | f23e5407c137504d5efa980f7ac202e1566b583e (diff) |
we still need to pass the wrong number of read bytes
Somehow we rely in some cases on the invalid number of read bytes.
Change-Id: I07e31c231cd96878da098f72cf3279da939da9c7
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xistream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xistream.cxx b/sc/source/filter/excel/xistream.cxx index 8cd9980821ec..20f9c32c4be0 100644 --- a/sc/source/filter/excel/xistream.cxx +++ b/sc/source/filter/excel/xistream.cxx @@ -824,7 +824,7 @@ sal_Size XclImpStream::CopyToStream( SvStream& rOutStrm, sal_Size nBytes ) nRet += Read( pnBuffer, nReadSize ); // writing more bytes than read results in invalid memory access SAL_WARN_IF(nRet != nReadSize, "sc", "read less bytes than requested"); - rOutStrm.Write( pnBuffer, nRet ); + rOutStrm.Write( pnBuffer, nReadSize ); nBytesLeft -= nReadSize; } |