Order of arraycopy backwards

This commit is contained in:
Eric Scharff 2007-10-30 15:10:32 -06:00
parent df79f410f1
commit 907ce57975

View File

@ -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;
}