Increase size of filename buffer

This commit is contained in:
Sara Sparks 2023-05-08 21:36:09 -04:00
parent aa952051fd
commit 37ab3e84fc

View file

@ -3658,11 +3658,11 @@ static void Got_RequestAddfoldercmd(UINT8 **cp, INT32 playernum)
static void Got_Addfilecmd(UINT8 **cp, INT32 playernum) static void Got_Addfilecmd(UINT8 **cp, INT32 playernum)
{ {
char filename[241]; char filename[MAX_WADPATH+1];
filestatus_t ncs = FS_NOTCHECKED; filestatus_t ncs = FS_NOTCHECKED;
UINT8 md5sum[16]; UINT8 md5sum[16];
READSTRINGN(*cp, filename, 240); READSTRINGN(*cp, filename, MAX_WADPATH);
READMEM(*cp, md5sum, 16); READMEM(*cp, md5sum, 16);
if (playernum != serverplayer) if (playernum != serverplayer)