Fix 'format not a string literal' error

pull/1/head
Timothy Pearson 12 years ago
parent a24a8595fc
commit 7738169e0f

@ -83,7 +83,7 @@ int parseArgs(ParseArgs * a)
#ifdef COMPILE_ON_WINDOWS #ifdef COMPILE_ON_WINDOWS
MessageBox(0,szMessage.local8Bit().data(),"KVIrc",0); MessageBox(0,szMessage.local8Bit().data(),"KVIrc",0);
#else #else
debug(szMessage); debug("%s", szMessage);
#endif #endif
return KVI_ARGS_RETCODE_STOP; return KVI_ARGS_RETCODE_STOP;
@ -131,7 +131,7 @@ int parseArgs(ParseArgs * a)
#ifdef COMPILE_ON_WINDOWS #ifdef COMPILE_ON_WINDOWS
MessageBox(0,szMessage.local8Bit().data(),"KVIrc",0); MessageBox(0,szMessage.local8Bit().data(),"KVIrc",0);
#else #else
debug(szMessage); debug("%s", szMessage);
#endif #endif
return KVI_ARGS_RETCODE_STOP; return KVI_ARGS_RETCODE_STOP;
} }
@ -385,7 +385,7 @@ int main(int argc,char ** argv)
if(a.bShowPopup) if(a.bShowPopup)
TQMessageBox::information(0,"Session - KVIrc",tmp.ptr(),TQMessageBox::Ok); TQMessageBox::information(0,"Session - KVIrc",tmp.ptr(),TQMessageBox::Ok);
else else
debug(tmp.ptr()); debug("%s", tmp.ptr());
} }
delete theApp; delete theApp;
return 0; return 0;

Loading…
Cancel
Save