src/share/native/java/util/zip/zip_util.c

Print this page

        

@@ -1372,13 +1372,11 @@
         pos += n;
         count -= n;
         strm.next_in = (Bytef *)tmp;
         strm.avail_in = n;
         do {
-            switch (inflate(&strm, Z_PARTIAL_FLUSH)) {
-            case Z_OK:
-                break;
+            switch (inflate(&strm, Z_FINISH)) {
             case Z_STREAM_END:
                 if (count != 0 || strm.total_out != entry->size) {
                     *msg = "inflateFully: Unexpected end of stream";
                     inflateEnd(&strm);
                     return JNI_FALSE;