From bcd5f5b94bd91eaa6f274b30eb8a39f70730b964 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Fri, 28 Sep 2007 12:19:13 -0600 Subject: [PATCH] Fixed bulk put offset for sliced arrays --- classpath/java/nio/ByteBuffer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classpath/java/nio/ByteBuffer.java b/classpath/java/nio/ByteBuffer.java index 1b72d70b2a..4e2018ef77 100644 --- a/classpath/java/nio/ByteBuffer.java +++ b/classpath/java/nio/ByteBuffer.java @@ -89,7 +89,7 @@ public class ByteBuffer { } public ByteBuffer put(byte[] arr, int offset, int len) { - System.arraycopy(arr, offset, array, arrayOffset, len); + System.arraycopy(arr, offset, array, arrayOffset+position, len); position += len; return this; }