Skip to content

Commit

Permalink
fixed missing offset inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
dghgit committed Oct 24, 2022
1 parent 82fd90a commit 04bc509
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ else if (len == 0)
int bytesFromLookahead = Math.min(bytesRead, lookAhead.length);
for (int i = 0; i < bytesFromLookahead; i++)
{
b[i] = (byte)lookAhead[(bufPtr + i) % lookAhead.length];
b[off + i] = (byte)lookAhead[(bufPtr + i) % lookAhead.length];
}

// write tail of readBuffer to lookahead
Expand Down

0 comments on commit 04bc509

Please sign in to comment.