From 8559f9bb2f3d3bb300d21df3ad41901dc6619121 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Sun, 20 Aug 2000 21:51:19 +0000 Subject: Adler32.java: Make private variables really private 2000-08-20 Mark Wielaard * java/util/zip/Adler32.java: Make private variables really private * java/util/zip/CRC32.java: Make private variables really private * java/util/zip/CheckedInputStream.java: skip() could skip to much bytes * java/util/zip/InflaterInputStream.java: skip() could skip to much bytes * java/util/zip/ZipEntry.java: setCompressedSize() didn't check input * java/util/zip/ZipFile.java: size() new 1.2 method * java/util/zip/ZipInputStream.java: Use createZipEntry not new ZipEntry. since 1.2 available() always returns just 1 or 0 when closed From-SVN: r35826 --- libjava/java/util/zip/InflaterInputStream.java | 1 + 1 file changed, 1 insertion(+) (limited to 'libjava/java/util/zip/InflaterInputStream.java') diff --git a/libjava/java/util/zip/InflaterInputStream.java b/libjava/java/util/zip/InflaterInputStream.java index c5840e7..92b897a 100644 --- a/libjava/java/util/zip/InflaterInputStream.java +++ b/libjava/java/util/zip/InflaterInputStream.java @@ -93,6 +93,7 @@ public class InflaterInputStream extends FilterInputStream break; n -= r; s += r; + min = (int) Math.min(n, 1024); } return s; -- cgit v1.1