From 1755bda42eff2a41c3750923ecb17877aab8efd7 Mon Sep 17 00:00:00 2001 From: Joshua Scott Date: Mon, 9 Apr 2018 21:56:58 +0100 Subject: [PATCH] protocol: Fix memcpy build error --- src/protocol/net/Participant.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol/net/Participant.cpp b/src/protocol/net/Participant.cpp index d5db22b..8e1fb73 100644 --- a/src/protocol/net/Participant.cpp +++ b/src/protocol/net/Participant.cpp @@ -1,5 +1,6 @@ #include "ki/protocol/net/Participant.h" #include "ki/protocol/exception.h" +#include namespace ki { @@ -49,7 +50,7 @@ namespace net ((uint16_t *)packet_data)[1] = size; // Copy the payload into the buffer and send it - memcpy(&packet_data[4], data, size); + std::memcpy(&packet_data[4], data, size); send_packet_data(packet_data, size + 4); delete[] packet_data; }