diff options
Diffstat (limited to 'cli.c')
-rw-r--r-- | cli.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) { |