warning fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3497 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-11-15 00:14:25 +00:00
parent 42f1a95f24
commit a0f6c067fe
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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();