mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Fix server stack corruption crashes.
This commit is contained in:
parent
7bdf911d3a
commit
069319ca99
1 changed files with 2 additions and 2 deletions
|
@ -2825,7 +2825,7 @@ qboolean SV_SendClientDatagram (client_t *client)
|
|||
|
||||
msg.allowoverflow = false;
|
||||
msg.data = buf;
|
||||
msg.maxsize = client->limit_unreliable;
|
||||
msg.maxsize = q_min(sizeof(buf), client->limit_unreliable);
|
||||
msg.cursize = 0;
|
||||
if (client->download.file)
|
||||
msg.maxsize /= 2; //make sure there's space for download data
|
||||
|
@ -2882,7 +2882,7 @@ qboolean SV_SendClientDatagram (client_t *client)
|
|||
|
||||
SV_VoiceSendPacket(client, &msg);
|
||||
|
||||
msg.maxsize = client->limit_unreliable;
|
||||
msg.maxsize = q_min(sizeof(buf), client->limit_unreliable);
|
||||
Host_AppendDownloadData(client, &msg);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue