mirror of
https://github.com/corda/corda.git
synced 2025-03-15 00:36:49 +00:00
fix BufferedInputStream.read regression
In commit 7fffba2, I had modified BufferedInputStream.read to keep reading until in.available() <= 0 or an EOF was reached, but neglected to update the offset into the destination buffer after each read. This caused the previously-read data to be overwritten. This commit fixes that regression.
This commit is contained in:
parent
5f9a2a1b9b
commit
a8645b6b2d
@ -66,6 +66,7 @@ public class BufferedInputStream extends InputStream {
|
||||
}
|
||||
break;
|
||||
} else {
|
||||
offset += c;
|
||||
count += c;
|
||||
length -= c;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user