diff options
author | Willem Jan Palenstijn | 2009-07-25 10:26:17 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2009-07-25 10:26:17 +0000 |
commit | e4088702602aadf2db195d76ed19e07f96408c7c (patch) | |
tree | 6c0861fffcf6dcb60b59402790e3e1b79dfcde70 /engines | |
parent | 744112ceb0731da474604f47d27f413828db7009 (diff) | |
download | scummvm-rg350-e4088702602aadf2db195d76ed19e07f96408c7c.tar.gz scummvm-rg350-e4088702602aadf2db195d76ed19e07f96408c7c.tar.bz2 scummvm-rg350-e4088702602aadf2db195d76ed19e07f96408c7c.zip |
Use new Common::String::printf
svn-id: r42744
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/sci.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 504e38c7c1..65d0a4753a 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -283,9 +283,7 @@ uint32 SciEngine::getFlags() const { } Common::String SciEngine::getSavegameName(int nr) const { - char extension[6]; - snprintf(extension, sizeof(extension), ".%03d", nr); - return _targetName + extension; + return _targetName + Common::String::printf(".%03d", nr); } Common::String SciEngine::getSavegamePattern() const { |