From c4262b3fa6e0bb064373adce0dfb504337fc4457 Mon Sep 17 00:00:00 2001 From: JJ <3617814+joligario@users.noreply.github.com> Date: Sun, 30 Mar 2025 15:46:46 -0400 Subject: [PATCH] [Cleanup] UCS Member Count (#4819) * [Cleanup] Fix SendChannelMembers size in UCS ChatChannelList * Part 2 * Forgot null terminator --- ucs/chatchannel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ucs/chatchannel.cpp b/ucs/chatchannel.cpp index a8a7cc797..1e0e0598f 100644 --- a/ucs/chatchannel.cpp +++ b/ucs/chatchannel.cpp @@ -177,7 +177,7 @@ void ChatChannelList::SendAllChannels(Client *c) { std::string Message; - char CountString[10]; + char CountString[13]; while(iterator.MoreElements()) { @@ -408,7 +408,7 @@ void ChatChannel::SendChannelMembers(Client *c) { if(!c) return; - char CountString[10]; + char CountString[13]; sprintf(CountString, "(%i)", MemberCount(c->GetAccountStatus()));