diff options
Diffstat (limited to 'bundles/org.eclipse.compare/compare/org/eclipse/compare/ZipFileStructureCreator.java')
-rw-r--r-- | bundles/org.eclipse.compare/compare/org/eclipse/compare/ZipFileStructureCreator.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/ZipFileStructureCreator.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/ZipFileStructureCreator.java index 442f31092..826bd9df2 100644 --- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/ZipFileStructureCreator.java +++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/ZipFileStructureCreator.java @@ -175,16 +175,16 @@ public class ZipFileStructureCreator implements IStructureCreator { } void appendBytes(byte[] buffer, int length) { - if (length > 0) { + if (length > 0) { int oldLen= 0; if (fContents != null) oldLen= fContents.length; byte[] newBuf= new byte[oldLen + length]; if (oldLen > 0) - System.arraycopy(fContents, 0, newBuf, 0, oldLen); - System.arraycopy(buffer, 0, newBuf, oldLen, length); - fContents= newBuf; - } + System.arraycopy(fContents, 0, newBuf, 0, oldLen); + System.arraycopy(buffer, 0, newBuf, oldLen, length); + fContents= newBuf; + } } } |