Merge branch 'savegamename-fix' into 'master'

Fix savegamename being improperly built

See merge request STJr/SRB2!378
This commit is contained in:
Digiku 2018-12-13 16:11:13 -05:00
commit c57f548c7b

View file

@ -3080,7 +3080,7 @@ static void readmaincfg(MYFILE *f)
strncpy(timeattackfolder, gamedatafilename, min(filenamelen, sizeof (timeattackfolder)));
timeattackfolder[min(filenamelen, sizeof (timeattackfolder) - 1)] = '\0';
strncpy(savegamename, timeattackfolder, strlen(timeattackfolder));
strcpy(savegamename, timeattackfolder);
strlcat(savegamename, "%u.ssg", sizeof(savegamename));
// can't use sprintf since there is %u in savegamename
strcatbf(savegamename, srb2home, PATHSEP);