diff options
Diffstat (limited to 'src/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java')
-rw-r--r-- | src/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java b/src/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java index 7c74d47871..80db4b3c48 100644 --- a/src/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java +++ b/src/java/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java @@ -122,10 +122,7 @@ public class POIFSDocumentPath this.components = new String[ path.components.length + components.length ]; } - for (int j = 0; j < path.components.length; j++) - { - this.components[ j ] = path.components[ j ]; - } + System.arraycopy(path.components, 0, this.components, 0, path.components.length); if (components != null) { for (int j = 0; j < components.length; j++) |