mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-28 02:32:48 +00:00
Clear name/contact with strncpy instead of memset
Probably doesn't matter, but it satisfies my OCD better
This commit is contained in:
parent
c2c46aca58
commit
2a68650477
1 changed files with 2 additions and 2 deletions
|
|
@ -3803,8 +3803,8 @@ void SV_ResetServer(void)
|
|||
// clear server_context
|
||||
memset(server_context, '-', 8);
|
||||
|
||||
memset(connectedservername, 0, MAXSERVERNAME);
|
||||
memset(connectedservercontact, 0, MAXSERVERCONTACT);
|
||||
strncpy(connectedservername, "\0", MAXSERVERNAME);
|
||||
strncpy(connectedservercontact, "\0", MAXSERVERCONTACT);
|
||||
|
||||
CV_RevertNetVars();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue