Skip to content

Commit 83f04fd

Browse files
author
Anders Leung
committed
Fix off by one error in ListByteBufferOutputStream
1 parent b806f6a commit 83f04fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/htsjdk/samtools/util/ListByteBufferOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public byte[] toByteArray() {
113113
public void reset() {
114114
currentBlock = blocks.get(0);
115115
nextBytePosition = 0;
116-
nextBlockIndex = 0;
116+
nextBlockIndex = 1;
117117
size = 0;
118118
}
119119

0 commit comments

Comments
 (0)