Fix constant

This commit is contained in:
Théophile Bastian 2016-11-24 16:18:16 +01:00
parent 750f9e3672
commit 6b69cee089
1 changed files with 2 additions and 2 deletions

View File

@ -180,11 +180,11 @@ void Protocol::pollNetwork() {
}
u16 bodyLen;
data >> bodyLen;
if(data.size() < bodyLen + 64u) {
if(data.size() < bodyLen + 8u) {
fprintf(stderr, "[WARNING] Body too short\n");
continue;
}
else if(data.size() != bodyLen + 64u) {
else if(data.size() != bodyLen + 8u) {
fprintf(stderr, "[WARNING] Body too long\n");
}