diff options
author | Martin Gallwey <mtg@openoffice.org> | 2001-10-31 10:32:54 +0000 |
---|---|---|
committer | Martin Gallwey <mtg@openoffice.org> | 2001-10-31 10:32:54 +0000 |
commit | 050e3f46766563d4c180dde70a370c1b5b77bf2e (patch) | |
tree | 3e86b46324e7fc8021989a05736a07fb49b95947 /package | |
parent | 3d78127239899380fbef330807e9c8bdcafe3785 (diff) |
#93994# don't try to read 0 bytes and then decrypt and inflate it!
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zipapi/XFileStream.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/source/zipapi/XFileStream.cxx b/package/source/zipapi/XFileStream.cxx index 4a2e2a53d62b..00f616782d83 100644 --- a/package/source/zipapi/XFileStream.cxx +++ b/package/source/zipapi/XFileStream.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XFileStream.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: mtg $ $Date: 2001-09-14 14:57:00 $ + * last change: $Author: mtg $ $Date: 2001-10-31 11:32:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -166,7 +166,7 @@ void XFileStream::fill( sal_Int64 nUntil) } sal_Int64 nDiff = mnZipEnd - mnZipCurrent; - if ( nDiff >= 0 ) + if ( nDiff > 0 ) { mxZipSeek->seek ( mnZipCurrent ); nRead = mxZipStream->readBytes ( maCompBuffer, static_cast < sal_Int32 > ( nDiff < n_ConstBufferSize ? nDiff : n_ConstBufferSize ) ); |