aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/sludger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sludge/sludger.cpp')
-rw-r--r--engines/sludge/sludger.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/sludger.cpp b/engines/sludge/sludger.cpp
index d84688e1d0..49edb2b4ff 100644
--- a/engines/sludge/sludger.cpp
+++ b/engines/sludge/sludger.cpp
@@ -167,14 +167,14 @@ Common::File *openAndVerify(const Common::String &filename, char extra1, char ex
debug(kSludgeDebugDataLoad, "minVersion %i", minVersion);
fileVersion = majVersion * 256 + minVersion;
- char txtVer[120];
+ Common::String txtVer = "";
if (fileVersion > WHOLE_VERSION) {
- sprintf(txtVer, ERROR_VERSION_TOO_LOW_2, majVersion, minVersion);
+ txtVer = Common::String::format(ERROR_VERSION_TOO_LOW_2, majVersion, minVersion);
fatal(ERROR_VERSION_TOO_LOW_1, txtVer);
return NULL;
} else if (fileVersion < MINIM_VERSION) {
- sprintf(txtVer, ERROR_VERSION_TOO_HIGH_2, majVersion, minVersion);
+ txtVer = Common::String::format(ERROR_VERSION_TOO_HIGH_2, majVersion, minVersion);
fatal(ERROR_VERSION_TOO_HIGH_1, txtVer);
return NULL;
}