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
This commit is contained in:
Spoike 2006-10-18 23:27:39 +00:00
parent 4927de5536
commit 5301cdadc1

View file

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