SHERLOCK: Don't use unsafe sprintf and vsprintf

This commit is contained in:
Le Philousophe 2022-10-23 15:27:07 +02:00 committed by Eugene Sandulenko
parent 137b51d7ac
commit a858fd57f0

View File

@ -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++) {