Introduce a sane interface function, from_backend(), for backends to
[u/mdw/putty] / raw.c
diff --git a/raw.c b/raw.c
index b0c8370..3f82d7a 100644 (file)
--- a/raw.c
+++ b/raw.c
@@ -54,8 +54,7 @@ static void s_write (void *buf, int len) {
 }
 
 static void c_write (char *buf, int len) {
-    while (len--) 
-        c_write1(*buf++);
+    from_backend(0, buf, len);
 }
 
 /*