summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/cli.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-02-10 12:44:03 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-02-10 12:44:03 +0000
commit265eccb736b515e8415c658edc7dd6bfbd539b62 (patch)
treeae918ec525e0e5dfb2f31080d16fc1dc6e538043 /usr.bin/ssh/cli.c
parent03ceb02322cc104fa2df8957aea16dfd47b46b3f (diff)
don't call vis() for \r
Diffstat (limited to 'usr.bin/ssh/cli.c')
-rw-r--r--usr.bin/ssh/cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/cli.c b/usr.bin/ssh/cli.c
index 643da3076f2..2735feb1af3 100644
--- a/usr.bin/ssh/cli.c
+++ b/usr.bin/ssh/cli.c
@@ -1,5 +1,5 @@
#include "includes.h"
-RCSID("$OpenBSD: cli.c,v 1.8 2001/02/08 19:30:51 itojun Exp $");
+RCSID("$OpenBSD: cli.c,v 1.9 2001/02/10 12:44:02 markus Exp $");
#include "xmalloc.h"
#include "log.h"
@@ -139,7 +139,7 @@ cli_write(char* buf, int size)
output = xmalloc(4*size);
for (p = output, i = 0; i < size; i++) {
- if (buf[i] == '\n')
+ if (buf[i] == '\n' || buf[i] == '\r')
*p++ = buf[i];
else
p = vis(p, buf[i], 0, 0);