summaryrefslogtreecommitdiff
path: root/odk/source/com/sun/star/lib/loader/Loader.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/source/com/sun/star/lib/loader/Loader.java')
-rw-r--r--odk/source/com/sun/star/lib/loader/Loader.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/odk/source/com/sun/star/lib/loader/Loader.java b/odk/source/com/sun/star/lib/loader/Loader.java
index 787ccbb48b33..750f0b792048 100644
--- a/odk/source/com/sun/star/lib/loader/Loader.java
+++ b/odk/source/com/sun/star/lib/loader/Loader.java
@@ -218,9 +218,7 @@ public final class Loader {
return;
}
byte[] buf2 = new byte[2 * n];
- for (int i = 0; i < n; ++i) {
- buf2[i] = buf[i];
- }
+ System.arraycopy(buf, 0, buf2, 0, n);
buf = buf2;
}
int k = s.read(buf, n, buf.length - n);