X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/ab21de779596591471529758bbf6d54b3176ea29..c9def1b8e8960113ab4fd91d0b69d5b422cf339f:/ssh.c diff --git a/ssh.c b/ssh.c index acc89cfc..65f0075c 100644 --- a/ssh.c +++ b/ssh.c @@ -128,16 +128,8 @@ static void c_write (char *buf, int len) { if (len > 0) { fwrite(buf, len, 1, stderr); fputc('\n', stderr); } return; } - while (len--) { - int new_head = (inbuf_head + 1) & INBUF_MASK; - if (new_head != inbuf_reap) { - inbuf[inbuf_head] = *buf++; - inbuf_head = new_head; - } else { - term_out(); - if( inbuf_head == inbuf_reap ) len++; else break; - } - } + while (len--) + c_write1(*buf++); } struct Packet {