(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:
rubidium
2013-06-29 12:09:55 +00:00
parent 2bf8b7421d
commit 361230e617
3 changed files with 5 additions and 3 deletions

View File

@@ -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);
}
}