From 2fd2df53fd3d93582e9f2d6aeb63437df4a88a87 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Tue, 30 Oct 2007 16:52:24 -0600 Subject: [PATCH] Fixed thinko in ByteArrayInputStream --- classpath/java/io/ByteArrayInputStream.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classpath/java/io/ByteArrayInputStream.java b/classpath/java/io/ByteArrayInputStream.java index 828db99722..56be302f76 100644 --- a/classpath/java/io/ByteArrayInputStream.java +++ b/classpath/java/io/ByteArrayInputStream.java @@ -20,7 +20,7 @@ public class ByteArrayInputStream extends InputStream { } public int read(byte[] buffer, int offset, int bufferLength) { - if (position < length) { + if (position >= length) { return -1; } int remaining = length-position;