]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
use less stack space
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 1 Feb 2010 01:37:52 +0000 (01:37 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 1 Feb 2010 01:37:52 +0000 (01:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9908 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 8b192aaee508fb57fa97d77b89d5c5680a8887d3..e6ecedb5114748ee363309b824f725ea4fdc325c 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -863,7 +863,7 @@ void SV_SendServerinfo (client_t *client)
                if(client->sv_demo_file != NULL)
                {
                        int i;
-                       char buf[NET_MAXMESSAGE];
+                       static char buf[NET_MAXMESSAGE];
                        sizebuf_t sb;
 
                        sb.data = (unsigned char *) buf;
@@ -2055,7 +2055,7 @@ static void SV_SendClientDatagram (client_t *client)
        int clientrate, maxrate, maxsize, maxsize2, downloadsize;
        sizebuf_t msg;
        int stats[MAX_CL_STATS];
-       unsigned char sv_sendclientdatagram_buf[NET_MAXMESSAGE];
+       static unsigned char sv_sendclientdatagram_buf[NET_MAXMESSAGE];
 
        // obey rate limit by limiting packet frequency if the packet size
        // limiting fails