(svn r25513) -Fix [FS#5623]: the high score's company/president name was stored with encoded string codes, causing it to cause trouble when the encoding of the string codes changes. Furthermore, check the incoming dangerous content better
This commit is contained in:
@@ -172,7 +172,7 @@ void LoadFromHighScore()
|
||||
i = SP_SAVED_HIGHSCORE_END;
|
||||
break;
|
||||
}
|
||||
*lastof(hs->company) = '\0';
|
||||
str_validate(hs->company, lastof(hs->company), SVS_NONE);
|
||||
hs->title = EndGameGetPerformanceTitleFromValue(hs->score);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user