From 5301cdadc14c2576544ffa563168094d6c130940 Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 18 Oct 2006 23:27:39 +0000 Subject: [PATCH] rjlan reported that bigfoot's use of bzero didn't compile in mingw git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2413 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_user.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/server/sv_user.c b/engine/server/sv_user.c index 9a8a95acc..1da35c850 100644 --- a/engine/server/sv_user.c +++ b/engine/server/sv_user.c @@ -1484,11 +1484,10 @@ void SV_Begin_f (void) //============================================================================= -int buffer; void SV_NextChunkedDownload(int chunknum) { #define CHUNKSIZE 1024 - char buffer[1024]; + char buffer[CHUNKSIZE]; int i; if (host_client->datagram.cursize + CHUNKSIZE+5+50 > host_client->datagram.maxsize) @@ -1502,7 +1501,7 @@ void SV_NextChunkedDownload(int chunknum) if (i > 0) { if (i != CHUNKSIZE) - bzero(buffer+i, CHUNKSIZE-i); + memset(buffer+i, 0, CHUNKSIZE-i); MSG_WriteByte(&host_client->datagram, svc_download); MSG_WriteLong(&host_client->datagram, chunknum);