aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-21 13:47:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-09-21 13:47:33 +0000
commit964c4a8c9ab7991d4267b54e65c61881c09fde78 (patch)
tree0b59ba090ae41b688190b4a5e5cc37bc1d2ba46d /src
parent425b0afd7cf5c883f2f5ef17782c03253c85fc3c (diff)
downloadnginx-964c4a8c9ab7991d4267b54e65c61881c09fde78.tar.gz
nginx-964c4a8c9ab7991d4267b54e65c61881c09fde78.zip
use "_" instead of " " as new line substitute, do not delete trailing new line
Diffstat (limited to 'src')
-rw-r--r--src/mail/ngx_mail_smtp_handler.c10
1 files changed, 1 insertions, 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;