From a0f6c067feab63ce8799956f4bd0bc17fd4c1f2a Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sat, 15 Nov 2008 00:14:25 +0000 Subject: [PATCH] warning fixes git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3497 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/log.cpp | 2 +- source/src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/log.cpp b/source/src/log.cpp index e5c098d8..587151b8 100644 --- a/source/src/log.cpp +++ b/source/src/log.cpp @@ -80,7 +80,7 @@ struct posixsyslog : log s_sprintfdv(sf, msg); filtertext(sf, sf, 2); int l = (level==log::info ? LOG_INFO : ( level==log::warning ? LOG_WARNING : LOG_ERR)); - syslog(l, sf); + syslog(l, "%s", sf); if(console) { puts(sf); diff --git a/source/src/main.cpp b/source/src/main.cpp index 6293a0a5..faa1ee7d 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -17,7 +17,7 @@ void cleanup(char *msg) // single program exit point; #ifdef WIN32 MessageBox(NULL, msg, "AssaultCube fatal error", MB_OK|MB_SYSTEMMODAL|MB_ICONERROR); #else - printf(msg); + printf("%s", msg); #endif } SDL_Quit();