From a32bf091a48e93abf508f37252d0072835b48b5e Mon Sep 17 00:00:00 2001 From: Martin Gallwey Date: Mon, 28 Jan 2002 17:11:53 +0000 Subject: #95155# fix unnecessary call to realloc --- package/source/zipapi/XUnbufferedStream.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'package') 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; -- cgit v1.2.3