Bug fix. The size should be taken from the actual zip entry, not the one passed it.

This commit is contained in:
jfrijters 2013-02-15 06:53:51 +00:00
Родитель be07a80f6a
Коммит aa78355fea
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;