Skip to content

Commit

Permalink
sv_main.cpp: SV_New_f() uses Q_snprintf() unsafe format. (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
Very Strange Karaulov authored Jun 19, 2021
1 parent 527d081 commit ad6f6ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rehlds/engine/sv_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1537,8 +1537,8 @@ void SV_New_f(void)
gEntityInterface.pfnClientDisconnect(ent);
}

Q_snprintf(szName, sizeof(szName), host_client->name);
Q_snprintf(szAddress, sizeof(szAddress), NET_AdrToString(host_client->netchan.remote_address));
Q_snprintf(szName, sizeof(szName), "%s", host_client->name);
Q_snprintf(szAddress, sizeof(szAddress), "%s", NET_AdrToString(host_client->netchan.remote_address));
Q_snprintf(szRejectReason, sizeof(szRejectReason), "Connection rejected by game\n");

// Allow the game dll to reject this client.
Expand Down

0 comments on commit ad6f6ad

Please sign in to comment.