use "_" instead of " " as new line substitute, do not delete trailing new line

This commit is contained in:
Igor Sysoev 2007-09-21 13:47:33 +00:00
parent 425b0afd7c
commit 964c4a8c9a

View File

@ -539,15 +539,7 @@ ngx_mail_smtp_log_rejected_command(ngx_mail_session_t *s, ngx_connection_t *c,
continue;
}
cmd.data[i] = ' ';
}
while (i) {
if (cmd.data[i - 1] != ' ') {
break;
}
i--;
cmd.data[i] = '_';
}
cmd.len = i;