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:
parent
4927de5536
commit
5301cdadc1
1 changed files with 2 additions and 3 deletions
|
@ -1484,11 +1484,10 @@ void SV_Begin_f (void)
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
|
||||||
int buffer;
|
|
||||||
void SV_NextChunkedDownload(int chunknum)
|
void SV_NextChunkedDownload(int chunknum)
|
||||||
{
|
{
|
||||||
#define CHUNKSIZE 1024
|
#define CHUNKSIZE 1024
|
||||||
char buffer[1024];
|
char buffer[CHUNKSIZE];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (host_client->datagram.cursize + CHUNKSIZE+5+50 > host_client->datagram.maxsize)
|
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 > 0)
|
||||||
{
|
{
|
||||||
if (i != CHUNKSIZE)
|
if (i != CHUNKSIZE)
|
||||||
bzero(buffer+i, CHUNKSIZE-i);
|
memset(buffer+i, 0, CHUNKSIZE-i);
|
||||||
|
|
||||||
MSG_WriteByte(&host_client->datagram, svc_download);
|
MSG_WriteByte(&host_client->datagram, svc_download);
|
||||||
MSG_WriteLong(&host_client->datagram, chunknum);
|
MSG_WriteLong(&host_client->datagram, chunknum);
|
||||||
|
|
Loading…
Reference in a new issue