X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f317611e5572e4292e3ee88f6956a97fcd794089..fe50e8140a2dbb3ba357a0ab777f34e07d568c23:/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;