From 315b65915ca4cf7240373ba9bee5439f1a55b66f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 16 Oct 2002 14:58:15 +0000 Subject: re PR libgcj/8234 (ZipInputStream chokes when InputStream.read() returns small chunks) Fix for PR libgcj/8234: * java/util/zip/natInflater.cc (reset): Reset avail_in. * java/util/zip/natDeflater.cc (reset): Reset avail_in. From-SVN: r58205 --- libjava/java/util/zip/natDeflater.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'libjava/java/util/zip/natDeflater.cc') diff --git a/libjava/java/util/zip/natDeflater.cc b/libjava/java/util/zip/natDeflater.cc index 0941143..23e1201 100644 --- a/libjava/java/util/zip/natDeflater.cc +++ b/libjava/java/util/zip/natDeflater.cc @@ -124,6 +124,7 @@ java::util::zip::Deflater::reset () z_streamp s = (z_streamp) zstream; // Just ignore errors. deflateReset (s); + s->avail_in = 0; flush_flag = 0; is_finished = false; } -- cgit v1.1