diff options
author | yinsimei | 2017-07-06 18:49:50 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-07-13 18:27:45 +0200 |
commit | fe773c1bebf353bdba2a4a279b19a85ea4d7be5a (patch) | |
tree | de69dd61289945426cd991642ee2314913817e43 /engines/sludge/builtin.cpp | |
parent | 8152793d09a8a776213a31f457fed897e62cc4b0 (diff) | |
download | scummvm-rg350-fe773c1bebf353bdba2a4a279b19a85ea4d7be5a.tar.gz scummvm-rg350-fe773c1bebf353bdba2a4a279b19a85ea4d7be5a.tar.bz2 scummvm-rg350-fe773c1bebf353bdba2a4a279b19a85ea4d7be5a.zip |
SLUDGE: replace char* by Common::String for error messages
Diffstat (limited to 'engines/sludge/builtin.cpp')
-rw-r--r-- | engines/sludge/builtin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp index 21818b9cb5..1f19fc3b14 100644 --- a/engines/sludge/builtin.cpp +++ b/engines/sludge/builtin.cpp @@ -2569,8 +2569,7 @@ builtIn(setThumbnailSize) { return BR_ERROR; trimStack(fun->stack); if (thumbWidth < 0 || thumbHeight < 0 || thumbWidth > winWidth || thumbHeight > winHeight) { - char buff[50]; - sprintf(buff, "%d x %d", thumbWidth, thumbHeight); + Common::String buff = thumbWidth + " x " + thumbHeight; fatal("Invalid thumbnail size", buff); return BR_ERROR; } |