|
|
@@ -601,7 +601,7 @@ public class IoUtil {
|
|
|
throw new IORuntimeException(e);
|
|
|
}
|
|
|
if (readLength > 0 && readLength < length) {
|
|
|
- byte[] b2 = new byte[length];
|
|
|
+ byte[] b2 = new byte[readLength];
|
|
|
System.arraycopy(b, 0, b2, 0, readLength);
|
|
|
return b2;
|
|
|
} else {
|