[Scummvm-cvs-logs] scummvm master -> 9607aae5be260666656a35ef3468f9669555f9e7
digitall
digitall at scummvm.org
Thu Jun 2 04:19:59 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
9607aae5be TOUCHE: Replace snprintf() usage with Common::String::format()
Commit: 9607aae5be260666656a35ef3468f9669555f9e7
https://github.com/scummvm/scummvm/commit/9607aae5be260666656a35ef3468f9669555f9e7
Author: D G Turner (digitall at scummvm.org)
Date: 2011-06-01T19:17:34-07:00
Commit Message:
TOUCHE: Replace snprintf() usage with Common::String::format()
Safer and less portability issues.
Changed paths:
engines/touche/saveload.cpp
diff --git a/engines/touche/saveload.cpp b/engines/touche/saveload.cpp
index 82ed03a..334f75a 100644
--- a/engines/touche/saveload.cpp
+++ b/engines/touche/saveload.cpp
@@ -380,9 +380,7 @@ Common::String generateGameStateFileName(const char *target, int slot, bool pref
if (prefixOnly) {
name += ".*";
} else {
- char slotStr[16];
- snprintf(slotStr, sizeof(slotStr), ".%d", slot);
- name += slotStr;
+ name += Common::String::format(".%d", slot);
}
return name;
}
More information about the Scummvm-git-logs
mailing list