mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 04:35:16 +00:00
SHERLOCK: Don't use unsafe sprintf and vsprintf
This commit is contained in:
parent
137b51d7ac
commit
a858fd57f0
@ -941,7 +941,7 @@ bool ScalpelEngine::showOfficeCutscene3DO() {
|
||||
|
||||
for (int nr = 1; finished && nr <= 4; nr++) {
|
||||
char filename[15];
|
||||
sprintf(filename, "credits%d.cel", nr);
|
||||
Common::sprintf_s(filename, "credits%d.cel", nr);
|
||||
ImageFile3DO *creditsImage = new ImageFile3DO(filename, kImageFile3DOType_Cel);
|
||||
ImageFrame *creditsFrame = &(*creditsImage)[0];
|
||||
for (int i = 0; finished && i < 200 + creditsFrame->_height; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user