summaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-10 21:45:02 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-10 21:45:02 +0000
commitfdc9ab08f7a013fe57edd69503a512687dc3407a (patch)
tree10a011f7ec0661ff827a0547c4eeb8c456d2d479 /cli.c
parent874a0b364c64beda0cb8e55a7b684d76b592c91c (diff)
- markus@cvs.openbsd.org 2001/02/10 12:44:02
[cli.c] don't call vis() for \r
Diffstat (limited to 'cli.c')
-rw-r--r--cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli.c b/cli.c
index 6152a810..52bb34aa 100644
--- a/cli.c
+++ b/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"
@@ -137,7 +137,7 @@ cli_write(const 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);