Fix a crash on some setups when using the say or csay commands

This commit is contained in:
Skirlez 2025-11-24 15:15:06 +02:00 committed by NepDisk
parent 0e53d5dfd7
commit 4b03990167

View file

@ -6910,7 +6910,7 @@ void DoSayPacketFromCommand(SINT8 target, size_t usedargs, UINT8 flags)
{
char buf[2 + HU_MAXMSGLEN + 1];
size_t numwords, ix;
char *msg = &buf[3];
char *msg = &buf[2];
const size_t msgspace = sizeof buf - 2;
numwords = COM_Argc() - usedargs;