From 0dc9457af86314703589738e75429fa92a05bd9b Mon Sep 17 00:00:00 2001 From: occamsaturn <88759801+occamsaturn@users.noreply.github.com> Date: Mon, 15 Dec 2025 20:18:42 -0800 Subject: [PATCH] Update djui_chat_message.c If we replace MAX_CHAT_PACKET_LENGTH in these two spots, it fixes the previous issue of having the chat text entry spill over the character limit (resulting in characters at the end of messages that are lost) while raising the character limit to the intended limit of 500. Or 499 more specifically. --- src/pc/djui/djui_chat_message.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pc/djui/djui_chat_message.c b/src/pc/djui/djui_chat_message.c index 6bb9028a4..dd299af34 100644 --- a/src/pc/djui/djui_chat_message.c +++ b/src/pc/djui/djui_chat_message.c @@ -62,8 +62,8 @@ void djui_chat_message_create_from(u8 globalIndex, const char* message) { } const char* playerColorString = network_get_player_text_color_string(np->localIndex); - char chatMsg[MAX_CHAT_MSG_LENGTH] = { 0 }; - snprintf(chatMsg, MAX_CHAT_MSG_LENGTH, "%s%s\\#dcdcdc\\: %s", playerColorString, (np != NULL) ? np->name : "Player", message); + char chatMsg[MAX_CHAT_PACKET_LENGTH] = { 0 }; + snprintf(chatMsg, MAX_CHAT_PACKET_LENGTH, "%s%s\\#dcdcdc\\: %s", playerColorString, (np != NULL) ? np->name : "Player", message); play_sound((globalIndex == gNetworkPlayerLocal->globalIndex) ? SOUND_MENU_MESSAGE_DISAPPEAR : SOUND_MENU_MESSAGE_APPEAR, gGlobalSoundSource); djui_chat_message_create(chatMsg);