We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84e953b commit 007b61aCopy full SHA for 007b61a
1 file changed
src/main/java/software/coley/llzip/util/BufferData.java
@@ -46,7 +46,7 @@ public void transferTo(OutputStream out, byte[] buf) throws IOException {
46
ByteBuffer buffer = this.buffer;
47
int remaining = buffer.remaining();
48
if (buffer.hasArray()) {
49
- out.write(buffer.array(), buffer.arrayOffset(), remaining);
+ out.write(buffer.array(), buffer.arrayOffset() + buffer.position(), remaining);
50
} else {
51
buffer.mark();
52
int copyThreshold = buf.length;
0 commit comments