mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-29 08:05:50 +03:00
sv_main.cpp: SV_New_f()
uses Q_snprintf()
unsafe format. (#807)
This commit is contained in:
parent
527d0819b9
commit
ad6f6ad396
@ -1537,8 +1537,8 @@ void SV_New_f(void)
|
|||||||
gEntityInterface.pfnClientDisconnect(ent);
|
gEntityInterface.pfnClientDisconnect(ent);
|
||||||
}
|
}
|
||||||
|
|
||||||
Q_snprintf(szName, sizeof(szName), host_client->name);
|
Q_snprintf(szName, sizeof(szName), "%s", host_client->name);
|
||||||
Q_snprintf(szAddress, sizeof(szAddress), NET_AdrToString(host_client->netchan.remote_address));
|
Q_snprintf(szAddress, sizeof(szAddress), "%s", NET_AdrToString(host_client->netchan.remote_address));
|
||||||
Q_snprintf(szRejectReason, sizeof(szRejectReason), "Connection rejected by game\n");
|
Q_snprintf(szRejectReason, sizeof(szRejectReason), "Connection rejected by game\n");
|
||||||
|
|
||||||
// Allow the game dll to reject this client.
|
// Allow the game dll to reject this client.
|
||||||
|
Loading…
Reference in New Issue
Block a user