mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-11 11:45:21 +00:00
TINSEL: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
This commit is contained in:
parent
0d379b3783
commit
c9156d369f
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user