aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorJohannes Schickel2008-11-16 20:20:31 +0000
committerJohannes Schickel2008-11-16 20:20:31 +0000
commit2ef8a32a0119f93483e2b58c9bd1f2f42851f9ea (patch)
tree5acce47983e5ef5210696de8731999a016b160dd /engines/scumm
parente1fdb1f882c7937d34e99dbfeeb3154846eee565 (diff)
downloadscummvm-rg350-2ef8a32a0119f93483e2b58c9bd1f2f42851f9ea.tar.gz
scummvm-rg350-2ef8a32a0119f93483e2b58c9bd1f2f42851f9ea.tar.bz2
scummvm-rg350-2ef8a32a0119f93483e2b58c9bd1f2f42851f9ea.zip
Fixed various g++ warnings ("format not a string literal and no format arguments").
svn-id: r35096
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/debugger.cpp2
-rw-r--r--engines/scumm/he/logic_he.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/debugger.cpp b/engines/scumm/debugger.cpp
index a391ba5332..891b5c0135 100644
--- a/engines/scumm/debugger.cpp
+++ b/engines/scumm/debugger.cpp
@@ -54,7 +54,7 @@ void debugC(int channel, const char *s, ...) {
vsnprintf(buf, STRINGBUFLEN, s, va);
va_end(va);
- debug(buf);
+ debug("%s", buf);
}
ScummDebugger::ScummDebugger(ScummEngine *s)
diff --git a/engines/scumm/he/logic_he.cpp b/engines/scumm/he/logic_he.cpp
index bdb48f70ed..5bc61da76d 100644
--- a/engines/scumm/he/logic_he.cpp
+++ b/engines/scumm/he/logic_he.cpp
@@ -90,7 +90,7 @@ int32 LogicHE::dispatch(int op, int numArgs, int32 *args) {
}
strncat(str, "])", 256);
- debug(0, str);
+ debug(0, "%s", str);
#else
// Used for parallel trace utility
for (int i = 0; i < numArgs; i++)