summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2002-01-28 17:11:53 +0000
committerMartin Gallwey <mtg@openoffice.org>2002-01-28 17:11:53 +0000
commita32bf091a48e93abf508f37252d0072835b48b5e (patch)
tree20867d807d5f23e03fb5892415421ada9c14c381 /package
parent04e4f3ef6c26a8d17f1c46907ed54cde96fb8c70 (diff)
#95155# fix unnecessary call to realloc
Diffstat (limited to 'package')
-rw-r--r--package/source/zipapi/XUnbufferedStream.cxx6
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;