From: Daniel Karbach Date: Fri, 4 Sep 2015 14:44:19 +0000 (+0200) Subject: fix stupid bug in packet builder X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=2b31a783f1bac06c7f6d7adbe5e13e4148c7a815;p=blank.git fix stupid bug in packet builder --- diff --git a/src/net/Packet.hpp b/src/net/Packet.hpp index bd9dd86..fa35189 100644 --- a/src/net/Packet.hpp +++ b/src/net/Packet.hpp @@ -105,7 +105,7 @@ struct Packet { pack.Tag(); pack.Type(PayloadType::TYPE); - udp_pack.len = sizeof(Header) + PayloadType::TYPE; + udp_pack.len = sizeof(Header) + PayloadType::MAX_LEN; PayloadType result; result.length = PayloadType::MAX_LEN;