fix spelling
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1801393 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
05c7c16308
commit
9225a961a3
@ -42,12 +42,12 @@ public final class UnknownEscherRecord extends EscherRecord implements Cloneable
|
|||||||
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {
|
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {
|
||||||
int bytesRemaining = readHeader( data, offset );
|
int bytesRemaining = readHeader( data, offset );
|
||||||
/*
|
/*
|
||||||
* Have a check between avaliable bytes and bytesRemaining,
|
* Have a check between available bytes and bytesRemaining,
|
||||||
* take the avaliable length if the bytesRemaining out of range.
|
* take the available length if the bytesRemaining out of range.
|
||||||
*/
|
*/
|
||||||
int avaliable = data.length - (offset + 8);
|
int available = data.length - (offset + 8);
|
||||||
if (bytesRemaining > avaliable) {
|
if (bytesRemaining > available) {
|
||||||
bytesRemaining = avaliable;
|
bytesRemaining = available;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isContainerRecord()) {
|
if (isContainerRecord()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user