aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/objects.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-20 08:28:12 -0400
committerPaul Gilbert2015-05-20 08:28:12 -0400
commit30133cef0e2a840325c1b46b106628c3cccd7d04 (patch)
tree33f2fb95e81abc5e7624fc7d0d0ae9ae51b9ed43 /engines/sherlock/objects.cpp
parentfe8139b57168bbb85eb1d4bb0d2c62219ee6383d (diff)
downloadscummvm-rg350-30133cef0e2a840325c1b46b106628c3cccd7d04.tar.gz
scummvm-rg350-30133cef0e2a840325c1b46b106628c3cccd7d04.tar.bz2
scummvm-rg350-30133cef0e2a840325c1b46b106628c3cccd7d04.zip
SHERLOCK: Re-add GCC_PRINTF and fix resulting GCC warnings
Diffstat (limited to 'engines/sherlock/objects.cpp')
-rw-r--r--engines/sherlock/objects.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sherlock/objects.cpp b/engines/sherlock/objects.cpp
index 94457b3dd5..02f2526ae9 100644
--- a/engines/sherlock/objects.cpp
+++ b/engines/sherlock/objects.cpp
@@ -865,13 +865,13 @@ int Object::checkNameForCodes(const Common::String &name, const char *const mess
int messageNum = atoi(name.c_str() + 1);
ui._infoFlag = true;
ui.clearInfo();
- screen.print(Common::Point(0, INFO_LINE + 1), INFO_FOREGROUND, messages[messageNum]);
+ screen.print(Common::Point(0, INFO_LINE + 1), INFO_FOREGROUND, "%s", messages[messageNum]);
ui._menuCounter = 25;
} else if (name.hasPrefix("@")) {
// Message attached to canimation
ui._infoFlag = true;
ui.clearInfo();
- screen.print(Common::Point(0, INFO_LINE + 1), INFO_FOREGROUND, name.c_str() + 1);
+ screen.print(Common::Point(0, INFO_LINE + 1), INFO_FOREGROUND, "%s", name.c_str() + 1);
printed = true;
ui._menuCounter = 25;
}
@@ -955,7 +955,7 @@ int Object::pickUpObject(const char *const messages[]) {
ui._infoFlag = true;
ui.clearInfo();
- screen.print(Common::Point(0, INFO_LINE + 1), INFO_FOREGROUND, messages[message]);
+ screen.print(Common::Point(0, INFO_LINE + 1), INFO_FOREGROUND, "%s", messages[message]);
ui._menuCounter = 30;
} else {
// Pick it up