From 1ecd827bcfbcc4aafa2ab1f93cd431521db2f41f Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 1 Feb 2010 01:37:52 +0000 Subject: [PATCH] use less stack space git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9908 d7cf8633-e32d-0410-b094-e92efae38249 --- sv_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sv_main.c b/sv_main.c index 8b192aae..e6ecedb5 100644 --- 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 -- 2.39.2