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);