[Cleanup] UCS Member Count (#4819)

* [Cleanup] Fix SendChannelMembers size in UCS ChatChannelList

* Part 2

* Forgot null terminator
This commit is contained in:
JJ 2025-03-30 15:46:46 -04:00 committed by GitHub
parent 92128b98fd
commit c4262b3fa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -177,7 +177,7 @@ void ChatChannelList::SendAllChannels(Client *c) {
std::string Message; std::string Message;
char CountString[10]; char CountString[13];
while(iterator.MoreElements()) { while(iterator.MoreElements()) {
@ -408,7 +408,7 @@ void ChatChannel::SendChannelMembers(Client *c) {
if(!c) return; if(!c) return;
char CountString[10]; char CountString[13];
sprintf(CountString, "(%i)", MemberCount(c->GetAccountStatus())); sprintf(CountString, "(%i)", MemberCount(c->GetAccountStatus()));