Skip to content
Snippets Groups Projects
Commit 1fecea06 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix extra line feed (and blank line) when long (> 78 char) strings were logged

to node.log via sbbs_t::log()
parent 83fa4577
No related branches found
No related tags found
No related merge requests found
Pipeline #6845 failed
......@@ -177,7 +177,7 @@ void sbbs_t::logentry(const char *code, const char *entry)
void sbbs_t::log(const char *str)
{
if(logfile_fp==NULL || online==ON_LOCAL) return;
if(logcol>=78 || (78-logcol)<strlen(str)) {
if(logcol>=78 || (logcol > 1 && (78-logcol)<strlen(str))) {
fputs(log_line_ending, logfile_fp);
logcol=1;
}
......
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