From 9853a665513fcc1be7f58d81741e0c30d18b7da2 Mon Sep 17 00:00:00 2001 From: plagman Date: Mon, 5 Jul 2010 19:33:29 +0000 Subject: [PATCH] Fix build. git-svn-id: https://svn.eduke32.com/eduke32@1670 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index 490c1b0fd..591d597a4 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -2226,7 +2226,11 @@ void Net_UpdateClients(void) } { - char *buf = alloca(PACKBUF_SIZE); + char buf[PACKBUF_SIZE]; + + if (j >= PACKBUF_SIZE) { + initprintf("Global packet buffer overflow! Size of packet: %i\n", j); + } j = qlz_compress((char *)(packbuf)+1, (char *)buf, j, state_compress); Bmemcpy((char *)(packbuf)+1, (char *)buf, j);