mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-23 16:32:36 +00:00
Fix gcc 8 compile by using strcpy instead of memcpy for PM
This commit is contained in:
parent
08a788af74
commit
2fe8317103
1 changed files with 2 additions and 2 deletions
|
|
@ -506,7 +506,7 @@ static void DoSayCommand(SINT8 target, size_t usedargs, UINT8 flags)
|
||||||
}
|
}
|
||||||
buf[0] = target;
|
buf[0] = target;
|
||||||
newmsg = msg+5+spc;
|
newmsg = msg+5+spc;
|
||||||
memcpy(msg, newmsg, 252);
|
strlcpy(msg, newmsg, 252);
|
||||||
}
|
}
|
||||||
|
|
||||||
SendNetXCmd(XD_SAY, buf, strlen(msg) + 1 + msg-buf);
|
SendNetXCmd(XD_SAY, buf, strlen(msg) + 1 + msg-buf);
|
||||||
|
|
@ -1014,7 +1014,7 @@ static void HU_queueChatChar(INT32 c)
|
||||||
}
|
}
|
||||||
// we need to get rid of the /pm<node>
|
// we need to get rid of the /pm<node>
|
||||||
newmsg = msg+5+spc;
|
newmsg = msg+5+spc;
|
||||||
memcpy(msg, newmsg, 255);
|
strlcpy(msg, newmsg, 255);
|
||||||
}
|
}
|
||||||
if (ci > 3) // don't send target+flags+empty message.
|
if (ci > 3) // don't send target+flags+empty message.
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue