mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
Fix bad offset in PeekableInputStream
This commit is contained in:
parent
2f48309f82
commit
7cf1bfcc98
@ -41,7 +41,7 @@ public class PeekableInputStream extends InputStream {
|
||||
if (!mPeeked) {
|
||||
return mIn.read(b, offset, length);
|
||||
} else {
|
||||
b[0] = (byte)mPeekedByte;
|
||||
b[offset] = (byte)mPeekedByte;
|
||||
mPeeked = false;
|
||||
int r = mIn.read(b, offset + 1, length - 1);
|
||||
if (r == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user