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;