From c9390f18458986742f04937e525a5b50005176ce Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 12 Jan 2019 00:21:44 +0000 Subject: [PATCH] Fix buffer overrun git-svn-id: https://svn.eduke32.com/eduke32@7302 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/net.cpp b/source/duke3d/src/net.cpp index 611af18ee..474db5917 100644 --- a/source/duke3d/src/net.cpp +++ b/source/duke3d/src/net.cpp @@ -4250,7 +4250,7 @@ static void Net_SendWorldUpdate(uint32_t fromRevisionNumber, uint32_t toRevision } - Bmemset(byteBuffer, 0, sizeof(tempnetbuf)); + Bmemset(byteBuffer, 0, sizeof(tempnetbuf) - 1); tempnetbuf[0] = PACKET_WORLD_UPDATE;