]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
better to use NET_MAXMESSAGE than 65536 for download buffering
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 11 Nov 2009 14:08:41 +0000 (14:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 11 Nov 2009 14:08:41 +0000 (14:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9464 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index a57cab57a8134fe5b53d9075a3898cc305b59232..f9039d03cf016842f7fe7d3b926f14f4bbdb2cb3 100644 (file)
@@ -1380,7 +1380,7 @@ void CL_StopDownload(int size, int crc)
 void CL_ParseDownload(void)
 {
        int i, start, size;
-       unsigned char data[65536];
+       unsigned char data[NET_MAXMESSAGE];
        start = MSG_ReadLong();
        size = (unsigned short)MSG_ReadShort();