mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
LASTEXPRESS: Don't use unsafe sprintf and vsprintf
This commit is contained in:
parent
dbe47a28ba
commit
27ba4d72c8
@ -1364,7 +1364,7 @@ void SoundManager::playAmbientSound(int param) {
|
||||
}
|
||||
|
||||
if (partNumber != 99)
|
||||
sprintf(tmp, "LOOP%d%c.SND", partNumber, (char)(_engine->getRandom().getRandomNumber(numLoops[partNumber] - 1) + 'A'));
|
||||
Common::sprintf_s(tmp, "LOOP%d%c.SND", partNumber, (char)(_engine->getRandom().getRandomNumber(numLoops[partNumber] - 1) + 'A'));
|
||||
}
|
||||
|
||||
if (getFlags()->flag_3)
|
||||
|
Loading…
x
Reference in New Issue
Block a user