Commit 0ace7b25 authored by Wayne Davison's avatar Wayne Davison

FERROR messages also need to leave leading newlines unmangled.

parent ccb8f578
......@@ -265,10 +265,11 @@ void rwrite(enum logcode code, char *buf, int len)
case FERROR:
log_got_error = 1;
f = stderr;
break;
goto pre_scan;
case FINFO:
f = am_server ? stderr : stdout;
while (len && (*buf == '\n' || *buf == '\t')) {
pre_scan:
while (len > 1 && (*buf == '\n' || *buf == '\t')) {
fputc(*buf, f);
buf++;
len--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment