aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/util')
-rw-r--r--libjava/java/util/jar/JarFile.java2
-rw-r--r--libjava/java/util/zip/ZipFile.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/util/jar/JarFile.java b/libjava/java/util/jar/JarFile.java
index 3f1823a..bcf7dd8 100644
--- a/libjava/java/util/jar/JarFile.java
+++ b/libjava/java/util/jar/JarFile.java
@@ -232,7 +232,7 @@ public class JarFile extends ZipFile {
public ZipEntry getEntry(String name) {
ZipEntry entry = super.getEntry(name);
if (entry != null) {
- JarEntry jarEntry = new JarEntry(getEntry(name));
+ JarEntry jarEntry = new JarEntry(super.getEntry(name));
if (manifest != null) {
jarEntry.attr = manifest.getAttributes(name);
// XXX jarEntry.certs
diff --git a/libjava/java/util/zip/ZipFile.java b/libjava/java/util/zip/ZipFile.java
index 7825786..22ed74b 100644
--- a/libjava/java/util/zip/ZipFile.java
+++ b/libjava/java/util/zip/ZipFile.java
@@ -121,7 +121,7 @@ public class ZipFile implements ZipConstants
public InputStream getInputStream(ZipEntry ze) throws IOException
{
- byte[] buffer = new byte[(int) ze.getSize()];
+ byte[] buffer = new byte[(int) ze.getCompressedSize()];
/* Read the size of the extra field, and skip to the start of the
data. */