From 964c4a8c9ab7991d4267b54e65c61881c09fde78 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 21 Sep 2007 13:47:33 +0000 Subject: [PATCH] use "_" instead of " " as new line substitute, do not delete trailing new line --- src/mail/ngx_mail_smtp_handler.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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; -- 2.47.3