fix reference to packet that is now buffer

This commit is contained in:
Stephen Birarda 2015-07-17 11:06:39 -07:00
parent e5722098f6
commit 357963b6e0

View file

@ -298,7 +298,7 @@ int AvatarData::parseDataFromBuffer(const QByteArray& buffer) {
// = 51 bytes
int minPossibleSize = 51;
int maxAvailableSize = packet.size() - offset;
int maxAvailableSize = buffer.size();
if (minPossibleSize > maxAvailableSize) {
if (shouldLogError(now)) {
qCDebug(avatars) << "Malformed AvatarData packet at the start; "