mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-13 21:31:32 +00:00
Merge branch 'fileneededconfig-fix' into 'master'
Fix fileneeded overflow See merge request KartKrew/Kart-Public!146
This commit is contained in:
commit
18e2e4ec8f
1 changed files with 2 additions and 1 deletions
|
@ -130,7 +130,8 @@ UINT8 *PutFileNeeded(UINT16 firstfile)
|
|||
|
||||
nameonly(strcpy(wadfilename, wadfiles[i]->filename));
|
||||
|
||||
if (p + 1 + 4 + strlen(wadfilename) + 16 > p_start + MAXFILENEEDED)
|
||||
// Look below at the WRITE macros to understand what these numbers mean.
|
||||
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