]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
I seem to have slightly funted Plink's display of banners etc in r6437, oops.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 5 Sep 2006 21:41:38 +0000 (21:41 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 5 Sep 2006 21:41:38 +0000 (21:41 +0000)
Fixed.

[originally from svn r6846]
[r6437 == 8719f92c1426609de7ead4a490a15d1d18875f53]

ssh.c

diff --git a/ssh.c b/ssh.c
index 808327d0ebb9eb24c041ce7fecf572de1fd42b06..8147485595b5a472df30f53ad4dbbc271193ad90 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -1052,7 +1052,7 @@ static void c_write_stderr(int trusted, const char *buf, int len)
 {
     int i;
     for (i = 0; i < len; i++)
-       if (buf[i] != '\r' && (trusted || buf[i] & 0x60))
+       if (buf[i] != '\r' && (trusted || buf[i] == '\n' || (buf[i] & 0x60)))
            fputc(buf[i], stderr);
 }