[#1262] Respect adjustment when using SlicedByteBuf.nioBuffers()

This commit is contained in:
Norman Maurer 2013-04-10 14:19:03 +02:00
parent 4746e74124
commit 3b8673733e

View File

@ -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);
}
}