Fix 1.6ism

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@999349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2010-09-21 11:54:05 +00:00
parent b8ac27ed99
commit 881aff2e42
1 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,10 @@ public class Ole10Native {
dataBuffer = new byte[totalSize-4];
System.arraycopy(data, 4, dataBuffer, 0, dataBuffer.length);
dataSize = totalSize - 4;
label = "ole-"+ HexDump.toHex(Arrays.copyOf(dataBuffer, 8));
byte[] oleLabel = new byte[8];
System.arraycopy(dataBuffer, 0, oleLabel, 0, Math.min(dataBuffer.length, 8));
label = "ole-"+ HexDump.toHex(oleLabel);
fileName = label;
command = label;
} else {