diff options
author | jfrijters <jfrijters> | 2013-02-15 10:53:51 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2013-02-15 10:53:51 +0400 |
commit | aa78355fea5957a840b28b5d0fff6c7a7e7a4e73 (patch) | |
tree | 5259aa4e5f8e326748db78de25b526ee36f8b8c5 /openjdk/java | |
parent | be07a80f6aa2b31b9dd5126065a5871d3d79695a (diff) |
Bug fix. The size should be taken from the actual zip entry, not the one passed it.
Diffstat (limited to 'openjdk/java')
-rw-r--r-- | openjdk/java/util/zip/ZipFile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openjdk/java/util/zip/ZipFile.java b/openjdk/java/util/zip/ZipFile.java index db4b5cf2..b22c7978 100644 --- a/openjdk/java/util/zip/ZipFile.java +++ b/openjdk/java/util/zip/ZipFile.java @@ -481,7 +481,7 @@ public class ZipFile implements ZipConstants, Closeable case ZipOutputStream.DEFLATED: inp.addDummyByte(); final Inflater inf = new Inflater(true); - final int sz = (int) entry.getSize(); + final int sz = (int) zipEntry.getSize(); return new InflaterInputStream(inp, inf) { private boolean closed; |