fixed missing offset inclusion
@@ -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
