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:
+1
-1
@@ -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
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user