changeset 1493:3c4111e07b58

use "_" instead of " " as new line substitute, do not delete trailing new line
author Igor Sysoev <igor@sysoev.ru>
date Fri, 21 Sep 2007 13:47:33 +0000
parents 22fb8f72d3e7
children 6535fb51976a
files src/mail/ngx_mail_smtp_handler.c
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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_m
             continue;
         }
 
-        cmd.data[i] = ' ';
-    }
-
-    while (i) {
-        if (cmd.data[i - 1] != ' ') {
-            break;
-        }
-
-        i--;
+        cmd.data[i] = '_';
     }
 
     cmd.len = i;