From: Igor Sysoev Date: Fri, 21 Sep 2007 13:47:33 +0000 (+0000) Subject: use "_" instead of " " as new line substitute, do not delete trailing new line X-Git-Tag: release-0.6.12~2 X-Git-Url: http://git.kaiwu.me/%7B@url%7D?a=commitdiff_plain;h=964c4a8c9ab7991d4267b54e65c61881c09fde78;p=nginx.git use "_" instead of " " as new line substitute, do not delete trailing new line --- diff --git a/src/mail/ngx_mail_smtp_handler.c b/src/mail/ngx_mail_smtp_handler.c index 1a69602dc..96cb762ed 100644 --- a/src/mail/ngx_mail_smtp_handler.c +++ b/src/mail/ngx_mail_smtp_handler.c @@ -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;