From c7a85a4cfcd3d78b51faff893364b183e0d50fde Mon Sep 17 00:00:00 2001 From: occamsaturn <88759801+occamsaturn@users.noreply.github.com> Date: Mon, 15 Dec 2025 20:12:51 -0800 Subject: [PATCH] Update packet_chat.c Increase remoteMessage to 500 and remoteMessageLength to 499, respectively, to accommodate the previous (and tragically incomplete) chat character limit increase. --- src/pc/network/packets/packet_chat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pc/network/packets/packet_chat.c b/src/pc/network/packets/packet_chat.c index fc6e97423..346e350b8 100644 --- a/src/pc/network/packets/packet_chat.c +++ b/src/pc/network/packets/packet_chat.c @@ -78,12 +78,12 @@ void network_send_chat(char* message, u8 globalIndex) { void network_receive_chat(struct Packet* p) { u16 remoteMessageLength = 0; - char remoteMessage[256] = { 0 }; + char remoteMessage[500] = { 0 }; u8 globalIndex; packet_read(p, &globalIndex, sizeof(u8)); packet_read(p, &remoteMessageLength, sizeof(u16)); - if (remoteMessageLength >= 255) { remoteMessageLength = 255; } + if (remoteMessageLength >= 499) { remoteMessageLength = 499; } packet_read(p, &remoteMessage, remoteMessageLength * sizeof(u8)); // anti spoof