summaryrefslogtreecommitdiff
path: root/cli.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-02-05 12:42:17 +0000
committerKevin Steves <stevesk@pobox.com>2001-02-05 12:42:17 +0000
commitef4eea9badfb65f05ac24f786b710cc3f27f0e43 (patch)
treef54abef181ccd6ad5285a5c16b4c159d8b74e932 /cli.c
parentd2ddda4efab29fd8663757634773fa10e557e0f3 (diff)
- stevesk@cvs.openbsd.org 2001/02/04 08:32:27
[many files; did this manually to our top-level source dir] unexpand and remove end-of-line whitespace; ok markus@
Diffstat (limited to 'cli.c')
-rw-r--r--cli.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli.c b/cli.c
index f86adac4e..0e35b826a 100644
--- a/cli.c
+++ b/cli.c
@@ -136,11 +136,11 @@ cli_write(const char* buf, int size)
136 136
137 output = xmalloc(4*size); 137 output = xmalloc(4*size);
138 for (p = output, i = 0; i < size; i++) { 138 for (p = output, i = 0; i < size; i++) {
139 if (buf[i] == '\n') 139 if (buf[i] == '\n')
140 *p++ = buf[i]; 140 *p++ = buf[i];
141 else 141 else
142 p = vis(p, buf[i], 0, 0); 142 p = vis(p, buf[i], 0, 0);
143 } 143 }
144 len = p - output; 144 len = p - output;
145 145
146 for (pos = 0; pos < len; pos += ret) { 146 for (pos = 0; pos < len; pos += ret) {