Fix a crash on some setups when using the say or csay commands
This commit is contained in:
parent
0e53d5dfd7
commit
4b03990167
1 changed files with 1 additions and 1 deletions
|
|
@ -6910,7 +6910,7 @@ void DoSayPacketFromCommand(SINT8 target, size_t usedargs, UINT8 flags)
|
||||||
{
|
{
|
||||||
char buf[2 + HU_MAXMSGLEN + 1];
|
char buf[2 + HU_MAXMSGLEN + 1];
|
||||||
size_t numwords, ix;
|
size_t numwords, ix;
|
||||||
char *msg = &buf[3];
|
char *msg = &buf[2];
|
||||||
const size_t msgspace = sizeof buf - 2;
|
const size_t msgspace = sizeof buf - 2;
|
||||||
|
|
||||||
numwords = COM_Argc() - usedargs;
|
numwords = COM_Argc() - usedargs;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue