Skip to content
Snippets Groups Projects
Commit 07bd71eb authored by deuce's avatar deuce
Browse files

Fix warning on fprintf(fp, str) by changing from fprintf() to fputs().

parent 17155a98
No related branches found
No related tags found
No related merge requests found
......@@ -147,14 +147,14 @@ void sbbs_t::log(char *str)
{
if(logfile_fp==NULL || online==ON_LOCAL) return;
if(logcol>=78 || (78-logcol)<strlen(str)) {
fprintf(logfile_fp,"\r\n");
fputs("\r\n",logfile_fp);
logcol=1;
}
if(logcol==1) {
fprintf(logfile_fp," ");
fputs(" ",logfile_fp);
logcol=4;
}
fprintf(logfile_fp,str);
fputs(str,logfile_fp);
if(*lastchar(str)==LF) {
logcol=1;
fflush(logfile_fp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment