aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/builtin.cpp
diff options
context:
space:
mode:
authoryinsimei2017-07-06 18:49:50 +0200
committerEugene Sandulenko2017-07-13 18:27:45 +0200
commitfe773c1bebf353bdba2a4a279b19a85ea4d7be5a (patch)
treede69dd61289945426cd991642ee2314913817e43 /engines/sludge/builtin.cpp
parent8152793d09a8a776213a31f457fed897e62cc4b0 (diff)
downloadscummvm-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.cpp3
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;
}