Text and special symbol packet, fixing linked vector packet size

This commit is contained in:
Dan Paulat 2021-12-27 21:23:58 -06:00
parent e505edf156
commit b65e9a3561
3 changed files with 184 additions and 1 deletions

View file

@ -85,7 +85,7 @@ bool LinkedVectorPacket::Parse(std::istream& is)
p->packetCode_ = ntohs(p->packetCode_);
p->lengthOfBlock_ = ntohs(p->lengthOfBlock_);
int vectorSize = static_cast<int>(p->lengthOfBlock_) - 2;
int vectorSize = static_cast<int>(p->lengthOfBlock_) - 4;
if (is.eof())
{