aboutsummaryrefslogtreecommitdiff
path: root/engines/drascula
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/drascula
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/drascula')
-rw-r--r--engines/drascula/drascula.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/drascula/drascula.cpp b/engines/drascula/drascula.cpp
index 32adfe7a11..83dc16f8f0 100644
--- a/engines/drascula/drascula.cpp
+++ b/engines/drascula/drascula.cpp
@@ -834,7 +834,7 @@ bool DrasculaEngine::loadDrasculaDat() {
if (!in.isOpen()) {
Common::String errorMessage = "You're missing the 'drascula.dat' file. Get it from the ScummVM website";
GUIErrorMessage(errorMessage);
- warning(errorMessage.c_str());
+ warning("%s", errorMessage.c_str());
return false;
}
@@ -848,7 +848,7 @@ bool DrasculaEngine::loadDrasculaDat() {
if (strcmp(buf, "DRASCULA")) {
Common::String errorMessage = "File 'drascula.dat' is corrupt. Get it from the ScummVM website";
GUIErrorMessage(errorMessage);
- warning(errorMessage.c_str());
+ warning("%s", errorMessage.c_str());
return false;
}
@@ -858,7 +858,7 @@ bool DrasculaEngine::loadDrasculaDat() {
if (ver != DRASCULA_DAT_VER) {
snprintf(buf, 256, "File 'drascula.dat' is wrong version. Expected %d but got %d. Get it from the ScummVM website", DRASCULA_DAT_VER, ver);
GUIErrorMessage(buf);
- warning(buf);
+ warning("%s", buf);
return false;
}