Skip to content

Commit a23b3df

Browse files
author
nekristalik
committed
fix: update offset increment in AdaptingZipReader buffer loop
1 parent ade1b35 commit a23b3df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/software/coley/lljzip/format/read/AdaptingZipReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void read(@Nonnull ZipArchive zip, @Nonnull MemorySegment data) throws IO
3838
int copyable = (int) Math.min(BUFFER_SIZE, length - offset);
3939
MemorySegment.copy(data, offset, wrapper, 0, copyable);
4040
os.write(buf, 0, copyable);
41-
offset += length;
41+
offset += copyable;
4242
}
4343
}
4444
fill(zip, temp);

0 commit comments

Comments
 (0)