[Fix] remove a duplicate memcpy.
This commit is contained in:
parent
f653c34baf
commit
e4b66aa68f
@ -175,7 +175,6 @@ void Bettola::process_udp_messages(void) {
|
||||
|
||||
BettolaLib::Network::MessageHeader header;
|
||||
memcpy(&header, buffer, sizeof(header));
|
||||
memcpy(&header, buffer, sizeof(header));
|
||||
|
||||
const char* payload = buffer + sizeof(BettolaLib::Network::MessageHeader);
|
||||
size_t payload_size = id_bytes_received-sizeof(BettolaLib::Network::MessageHeader);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user