From 3b8673733e5a052fab5013fff9c25fec574f59de Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Wed, 10 Apr 2013 14:19:03 +0200 Subject: [PATCH] [#1262] Respect adjustment when using SlicedByteBuf.nioBuffers() --- buffer/src/main/java/io/netty/buffer/SlicedByteBuf.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer/src/main/java/io/netty/buffer/SlicedByteBuf.java b/buffer/src/main/java/io/netty/buffer/SlicedByteBuf.java index e0ed1d0620..10a271eb7a 100644 --- a/buffer/src/main/java/io/netty/buffer/SlicedByteBuf.java +++ b/buffer/src/main/java/io/netty/buffer/SlicedByteBuf.java @@ -265,6 +265,6 @@ public class SlicedByteBuf extends AbstractDerivedByteBuf { @Override public ByteBuffer[] nioBuffers(int index, int length) { checkIndex(index, length); - return buffer.nioBuffers(index, length); + return buffer.nioBuffers(index + adjustment, length); } }