diff options
author | Colin Snover | 2016-11-22 13:24:29 -0600 |
---|---|---|
committer | Colin Snover | 2016-12-03 12:21:55 -0600 |
commit | 273695a11ec03d9dbd5916b89966fe55936d8394 (patch) | |
tree | d6e3abc7baf476372de2182bea38eee74985a3ce /engines/sci/resource.h | |
parent | 9e1bf888b8b3095a844c636e78b0bf35708878a9 (diff) | |
download | scummvm-rg350-273695a11ec03d9dbd5916b89966fe55936d8394.tar.gz scummvm-rg350-273695a11ec03d9dbd5916b89966fe55936d8394.tar.bz2 scummvm-rg350-273695a11ec03d9dbd5916b89966fe55936d8394.zip |
SCI: Remove use of snprintf
Diffstat (limited to 'engines/sci/resource.h')
-rw-r--r-- | engines/sci/resource.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/sci/resource.h b/engines/sci/resource.h index 928d571dbc..e601a1c434 100644 --- a/engines/sci/resource.h +++ b/engines/sci/resource.h @@ -174,14 +174,10 @@ public: } Common::String toString() const { - char buf[32]; - - snprintf(buf, 32, "%s.%d", getResourceTypeName(_type), _number); - Common::String retStr = buf; + Common::String retStr = Common::String::format("%s.%d", getResourceTypeName(_type), _number); if (_tuple != 0) { - snprintf(buf, 32, "(%d, %d, %d, %d)", _tuple >> 24, (_tuple >> 16) & 0xff, (_tuple >> 8) & 0xff, _tuple & 0xff); - retStr += buf; + retStr += Common::String::format("(%d, %d, %d, %d)", _tuple >> 24, (_tuple >> 16) & 0xff, (_tuple >> 8) & 0xff, _tuple & 0xff); } return retStr; |