summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plainPacket.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plainPacket.cpp b/plainPacket.cpp
index 07562bd..c48cd8c 100644
--- a/plainPacket.cpp
+++ b/plainPacket.cpp
@@ -31,7 +31,6 @@
#include <stdexcept>
#include <iostream>
#include <arpa/inet.h>
-#include <cstdio> // for std::memcpy
#include "datatypes.h"
@@ -44,7 +43,7 @@ PlainPacket::~PlainPacket()
buf_ = reinterpret_cast<u_int8_t*>(payload_type_);
}
-PlainPacket::PlainPacket(u_int32_t max_payload_length) : Buffer(payload_length + sizeof(payload_type_t))
+PlainPacket::PlainPacket(u_int32_t max_payload_length) : Buffer(max_payload_length + sizeof(payload_type_t))
{
payload_type_ = reinterpret_cast<payload_type_t*>(buf_);
buf_ = buf_ + sizeof(payload_type_t);