mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
Order of arraycopy backwards
This commit is contained in:
parent
df79f410f1
commit
907ce57975
@ -26,7 +26,7 @@ public class ByteArrayInputStream extends InputStream {
|
||||
if (length-position < bufferLength) {
|
||||
bufferLength = length-position;
|
||||
}
|
||||
System.arraycopy(buffer, offset, array, position, bufferLength);
|
||||
System.arraycopy(array, position, buffer, offset, bufferLength);
|
||||
position += bufferLength;
|
||||
return bufferLength;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user