]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
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 8a4dc51c47b3fce0ba49029045b0550995747df9..71ffa7a8ba60b44b24e34a40915824ffa26a30bf 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);