X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/5b80d07f712ff90cfae4c89084e25eb90dd2e510..ca2d59436752b1d46a12d4d4fabd366fac81b0ca:/ldisc.c diff --git a/ldisc.c b/ldisc.c index b72c7720..10576d29 100644 --- a/ldisc.c +++ b/ldisc.c @@ -16,8 +16,11 @@ */ static void c_write (char *buf, int len) { - while (len--) - c_write1(*buf++); + from_backend(0, buf, len); +} + +static void c_write1 (char c) { + c_write(&c, 1); } static char *term_buf = NULL;