diff --git a/src/java/org/apache/poi/ddf/UnknownEscherRecord.java b/src/java/org/apache/poi/ddf/UnknownEscherRecord.java index f70e5de4d..d49176d2b 100644 --- a/src/java/org/apache/poi/ddf/UnknownEscherRecord.java +++ b/src/java/org/apache/poi/ddf/UnknownEscherRecord.java @@ -42,12 +42,12 @@ public final class UnknownEscherRecord extends EscherRecord implements Cloneable public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) { int bytesRemaining = readHeader( data, offset ); /* - * Have a check between avaliable bytes and bytesRemaining, - * take the avaliable length if the bytesRemaining out of range. + * Have a check between available bytes and bytesRemaining, + * take the available length if the bytesRemaining out of range. */ - int avaliable = data.length - (offset + 8); - if (bytesRemaining > avaliable) { - bytesRemaining = avaliable; + int available = data.length - (offset + 8); + if (bytesRemaining > available) { + bytesRemaining = available; } if (isContainerRecord()) {