diff options
author | D G Turner | 2011-06-02 02:20:51 +0100 |
---|---|---|
committer | D G Turner | 2011-06-02 02:20:51 +0100 |
commit | 8356656575b4c07229dc0e9bd97fa2f67573de73 (patch) | |
tree | 2d5884b8d2ab89ccae17c36fdb48cca9a98ab35b /engines/gob/save | |
parent | 092142d8800f4b7f136098d9cbad6ee8d5ffbe8b (diff) | |
download | scummvm-rg350-8356656575b4c07229dc0e9bd97fa2f67573de73.tar.gz scummvm-rg350-8356656575b4c07229dc0e9bd97fa2f67573de73.tar.bz2 scummvm-rg350-8356656575b4c07229dc0e9bd97fa2f67573de73.zip |
GOB: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
Diffstat (limited to 'engines/gob/save')
-rw-r--r-- | engines/gob/save/savehandler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/gob/save/savehandler.cpp b/engines/gob/save/savehandler.cpp index 9e46f1db6f..71de629f93 100644 --- a/engines/gob/save/savehandler.cpp +++ b/engines/gob/save/savehandler.cpp @@ -154,8 +154,7 @@ Common::String SlotFileIndexed::build(int slot) const { if ((slot < 0) || (((uint32) slot) >= _slotCount)) return Common::String(); - char buf[4]; - snprintf(buf, sizeof(buf), "%02d", slot); + Common::String buf = Common::String::format("%02d", slot); return _base + "." + _ext + buf; } |