summaryrefslogtreecommitdiff
path: root/cli.c
diff options
context:
space:
mode:
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 6152a810e..52bb34aa0 100644
--- a/cli.c
+++ b/cli.c
@@ -1,5 +1,5 @@
1#include "includes.h" 1#include "includes.h"
2RCSID("$OpenBSD: cli.c,v 1.8 2001/02/08 19:30:51 itojun Exp $"); 2RCSID("$OpenBSD: cli.c,v 1.9 2001/02/10 12:44:02 markus Exp $");
3 3
4#include "xmalloc.h" 4#include "xmalloc.h"
5#include "log.h" 5#include "log.h"
@@ -137,7 +137,7 @@ cli_write(const char* buf, int size)
137 137
138 output = xmalloc(4*size); 138 output = xmalloc(4*size);
139 for (p = output, i = 0; i < size; i++) { 139 for (p = output, i = 0; i < size; i++) {
140 if (buf[i] == '\n') 140 if (buf[i] == '\n' || buf[i] == '\r')
141 *p++ = buf[i]; 141 *p++ = buf[i];
142 else 142 else
143 p = vis(p, buf[i], 0, 0); 143 p = vis(p, buf[i], 0, 0);