fix spelling

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1801393 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2017-07-09 21:34:53 +00:00
parent 05c7c16308
commit 9225a961a3

View File

@ -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()) {