mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-04-23 02:38:15 +00:00
Cover edge case of WRITESTRINGN
This commit is contained in:
parent
d5e1c1af42
commit
bbee4a2554
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ UINT8 *PutFileNeeded(UINT16 firstfile)
|
|||
nameonly(strcpy(wadfilename, wadfiles[i]->filename));
|
||||
|
||||
// Look below at the WRITE macros to understand what these numbers mean.
|
||||
if (p + 1 + 4 + strlen(wadfilename) + 1 + 16 > p_start + MAXFILENEEDED)
|
||||
if (p + 1 + 4 + min(strlen(wadfilename) + 1, MAX_WADPATH) + 16 > p_start + MAXFILENEEDED)
|
||||
{
|
||||
// Too many files to send all at once
|
||||
if (netbuffer->packettype == PT_MOREFILESNEEDED)
|
||||
|
|
Loading…
Reference in a new issue