]> git.kaiwu.me - nginx.git/commitdiff
use "_" instead of " " as new line substitute, do not delete trailing new line
authorIgor Sysoev <igor@sysoev.ru>
Fri, 21 Sep 2007 13:47:33 +0000 (13:47 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 21 Sep 2007 13:47:33 +0000 (13:47 +0000)
src/mail/ngx_mail_smtp_handler.c

index 1a69602dc3a124f36644f495b358a52c69142b0e..96cb762ed7f61f470ebe9962ecede500b5af6240 100644 (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;