mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't strcpy into beyond the end of the joinedIPlist array
This commit is contained in:
parent
b5e9de2e69
commit
710b2da729
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ void M_AddToJoinedIPs(char *address, char *servname)
|
|||
CONS_Printf("Adding %s (%s) to list of manually joined IPs\n", servname, address);
|
||||
|
||||
// Start by moving every IP up 1 slot (dropping the last IP in the table)
|
||||
for (i = NUMLOGIP; i; i--)
|
||||
for (i = NUMLOGIP-1; i; i--)
|
||||
{
|
||||
strcpy(joinedIPlist[i][0], joinedIPlist[i-1][0]);
|
||||
strcpy(joinedIPlist[i][1], joinedIPlist[i-1][1]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue