aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2000-08-24 22:48:12 +0000
committerMark Wielaard <mark@gcc.gnu.org>2000-08-24 22:48:12 +0000
commit309bf2960a40848b7dd08dfa45e98b88ac16fcc2 (patch)
tree1e5cc02ba52800a5f61f143eeedeed4ddbdd6630 /libjava/java
parent2f59c8eb4bf922da188c1c5e6b85fc1381f43cb9 (diff)
downloadgcc-309bf2960a40848b7dd08dfa45e98b88ac16fcc2.zip
gcc-309bf2960a40848b7dd08dfa45e98b88ac16fcc2.tar.gz
gcc-309bf2960a40848b7dd08dfa45e98b88ac16fcc2.tar.bz2
InflaterInputStream.java (read(byte[],int,int)): return -1 when fill() has no more data for the Inflater.
* java/util/zip/InflaterInputStream.java (read(byte[],int,int)): return -1 when fill() has no more data for the Inflater. From-SVN: r35963
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/util/zip/InflaterInputStream.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/libjava/java/util/zip/InflaterInputStream.java b/libjava/java/util/zip/InflaterInputStream.java
index 92b897a..e09f208 100644
--- a/libjava/java/util/zip/InflaterInputStream.java
+++ b/libjava/java/util/zip/InflaterInputStream.java
@@ -65,6 +65,8 @@ public class InflaterInputStream extends FilterInputStream
return -1;
if (inf.needsInput())
fill ();
+ if (this.len == -1)
+ return -1; // Couldn't get any more data to feed to the Inflater
if (inf.needsDictionary())
return -1;
try