diff --git a/engines/dragons/scene.cpp b/engines/dragons/scene.cpp index e362ea2fea8..6289cef8b8b 100644 --- a/engines/dragons/scene.cpp +++ b/engines/dragons/scene.cpp @@ -487,7 +487,7 @@ void Scene::drawActorNumber(int16 x, int16 y, uint16 actorId) { uint16 text[30]; char text8[15]; - sprintf(text8, "%d", actorId); + Common::sprintf_s(text8, "%d", actorId); for (uint i = 0; i < strlen(text8); i++) { text[i] = text8[i]; diff --git a/engines/dragons/talk.cpp b/engines/dragons/talk.cpp index 8adbd7da69c..68c4bbbdb5d 100644 --- a/engines/dragons/talk.cpp +++ b/engines/dragons/talk.cpp @@ -58,7 +58,7 @@ bool Talk::loadText(uint32 textIndex, uint16 *textBuffer, uint16 bufferLength) { uint32 fileNo = (textIndex >> 0xc) & 0xffff; uint32 fileOffset = textIndex & 0xfff; - sprintf(filename, "drag%04d.txt", fileNo); + Common::sprintf_s(filename, "drag%04d.txt", fileNo); uint32 size; byte *data = _bigfileArchive->load(filename, size); debug(1, "DIALOG: %s, %s, %d", filename, data, fileOffset);