]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_parse.c
better to use NET_MAXMESSAGE than 65536 for download buffering
[xonotic/darkplaces.git] / 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();