diff options
-rw-r--r-- | scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java b/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java index d221155d3902..b1c663c54a7c 100644 --- a/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java +++ b/scripting/java/com/sun/star/script/framework/io/XOutputStreamWrapper.java @@ -71,10 +71,7 @@ public class XOutputStreamWrapper extends OutputStream { throw new java.io.IOException( "Stream is null" ); } byte[] bytes = new byte[len]; - for ( int i=off; i< off+len; i++ ) - { - bytes[i] = b[i]; - } + System.arraycopy(b, off, bytes, 0, len); try { m_xOutputStream.writeBytes(bytes); |