ZipInputStream.java: idem
authorJohn Leuner <jewel@debian.org>
Wed, 12 Feb 2003 01:25:08 +0000 (01:25 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 12 Feb 2003 01:25:08 +0000 (01:25 +0000)
2003-02-11  John Leuner  <jewel@debian.org>

* java/util/zip/ZipInputStream.java: idem

From-SVN: r62754

libjava/ChangeLog
libjava/java/util/zip/ZipInputStream.java

index 46dab6412fa2a26bdb0392d0b7c59179c300e248..9553f6058f662e4ddbc88ee11185afd73e945583 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-11  John Leuner  <jewel@debian.org>
+
+       * java/util/zip/ZipInputStream.java: idem
+
 2003-02-11  Ranjit Mathew  <rmathew@hotmail.com>
 
        * java/io/natFileDescriptorWin32.cc 
index c4905978d748fbf03c477df87e3246555fd9356c..2fba9f556dccfe85fbb79981805e662f3ea79e93 100644 (file)
@@ -1,5 +1,5 @@
 /* java.util.zip.ZipInputStream
-   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -286,6 +286,8 @@ public class ZipInputStream extends InflaterInputStream implements ZipConstants
    */
   public int read(byte[] b, int off, int len) throws IOException
   {
+    if (len == 0)
+      return 0;
     if (crc == null)
       throw new IOException("Stream closed.");
     if (entry == null)