Fix 'format not a string literal' error

(cherry picked from commit 7738169e0f)
v3.5.13-sru
Timothy Pearson 12 years ago committed by Slávek Banko
parent aa53268d46
commit dd3b236a94

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

Loading…
Cancel
Save