From 131eb9491967a328956503c621356875446dec9f Mon Sep 17 00:00:00 2001 From: CPunch Date: Sun, 4 Oct 2020 12:52:16 -0500 Subject: [PATCH] removed stale comment --- src/ChatManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ChatManager.cpp b/src/ChatManager.cpp index 57e3a1b..992c894 100644 --- a/src/ChatManager.cpp +++ b/src/ChatManager.cpp @@ -245,7 +245,7 @@ void ChatManager::sendServerMessage(CNSocket* sock, std::string msg) { INITSTRUCT(sP_FE2CL_PC_MOTD_LOGIN, motd); motd.iType = 1; - // convert string to u16 and write it to the buffer (TODO: add sanity check to prevent buffer overflow) + // convert string to u16 and write it to the buffer U8toU16(msg, (char16_t*)motd.szSystemMsg, sizeof(motd.szSystemMsg)); // send the packet :)