TINSEL: Replace snprintf() usage with Common::String::format()

Safer and less portability issues.
This commit is contained in:
D G Turner 2011-06-02 03:58:27 +01:00
parent 0d379b3783
commit c9156d369f

View File

@ -886,9 +886,7 @@ TinselEngine::~TinselEngine() {
}
Common::String TinselEngine::getSavegameFilename(int16 saveNum) const {
char filename[256];
snprintf(filename, 256, "%s.%03d", getTargetName().c_str(), saveNum);
return filename;
return Common::String::format("%s.%03d", getTargetName().c_str(), saveNum);
}
Common::Error TinselEngine::run() {