Fixing logic error in max length for ByteAccumulator

This commit is contained in:
Joakim Erdfelt 2013-11-06 17:29:17 -07:00
parent dbd404fa03
commit d426138d0b
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ public class ByteAccumulator
public void addBuffer(byte buf[], int offset, int length)
{
if (buf.length + length > maxSize)
if (this.length + length > maxSize)
{
throw new MessageTooLargeException("Frame is too large");
}