SCUMM: Don't use unsafe sprintf and vsprintf

This commit is contained in:
Le Philousophe 2022-10-23 15:26:54 +02:00 committed by Eugene Sandulenko
parent f54bdf989a
commit 137b51d7ac
16 changed files with 35 additions and 35 deletions

View file

@ -1431,8 +1431,8 @@ void ScummEngine::saveLoadWithSerializer(Common::Serializer &s) {
if (s.isLoading()) {
char md5str1[32+1], md5str2[32+1];
for (i = 0; i < 16; i++) {
sprintf(md5str1 + i*2, "%02x", (int)_gameMD5[i]);
sprintf(md5str2 + i*2, "%02x", (int)md5Backup[i]);
Common::sprintf_s(md5str1 + i*2, 3, "%02x", (int)_gameMD5[i]);
Common::sprintf_s(md5str2 + i*2, 3, "%02x", (int)md5Backup[i]);
}
debug(2, "Save version: %d", s.getVersion());