diff options
author | Martin Gallwey <mtg@openoffice.org> | 2002-01-28 17:11:53 +0000 |
---|---|---|
committer | Martin Gallwey <mtg@openoffice.org> | 2002-01-28 17:11:53 +0000 |
commit | a32bf091a48e93abf508f37252d0072835b48b5e (patch) | |
tree | 20867d807d5f23e03fb5892415421ada9c14c381 /package | |
parent | 04e4f3ef6c26a8d17f1c46907ed54cde96fb8c70 (diff) |
#95155# fix unnecessary call to realloc
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zipapi/XUnbufferedStream.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/source/zipapi/XUnbufferedStream.cxx b/package/source/zipapi/XUnbufferedStream.cxx index 923588645d3a..f5aa6747cef2 100644 --- a/package/source/zipapi/XUnbufferedStream.cxx +++ b/package/source/zipapi/XUnbufferedStream.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XUnbufferedStream.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: mtg $ $Date: 2001-12-04 17:41:17 $ + * last change: $Author: mtg $ $Date: 2002-01-28 18:11:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -216,7 +216,7 @@ sal_Int32 SAL_CALL XUnbufferedStream::readBytes( Sequence< sal_Int8 >& aData, sa } mnMyCurrent += nRead; nTotal = nRead + nLastRead; - if ( nTotal < nBytesToRead ) + if ( nTotal < nRequestedBytes) aData.realloc ( nTotal ); } return nTotal; |