fixed another stack overflow on win32, apparently a 64k packet buffer on the stack...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 11 Feb 2003 13:48:34 +0000 (13:48 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 11 Feb 2003 13:48:34 +0000 (13:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2732 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 8a4dc51..71ffa7a 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -1385,13 +1385,13 @@ void SV_WriteClientdataToMessage (edict_t *ent, sizebuf_t *msg)
 SV_SendClientDatagram
 =======================
 */
+static qbyte sv_sendclientdatagram_buf[MAX_DATAGRAM]; // FIXME?
 qboolean SV_SendClientDatagram (client_t *client)
 {
-       qbyte           buf[MAX_DATAGRAM];
        sizebuf_t       msg;
 
-       msg.data = buf;
-       msg.maxsize = sizeof(buf);
+       msg.data = sv_sendclientdatagram_buf;
+       msg.maxsize = sizeof(sv_sendclientdatagram_buf);
        msg.cursize = 0;
 
        MSG_WriteByte (&msg, svc_time);