X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/6f34e365eed04c1b4ebcf6d90511dd9e4400880a..fe50e8140a2dbb3ba357a0ab777f34e07d568c23:/raw.c diff --git a/raw.c b/raw.c index f7df52cb..3f82d7ad 100644 --- a/raw.c +++ b/raw.c @@ -1,7 +1,13 @@ #include #include #include +#ifndef AUTO_WINSOCK +#ifdef WINSOCK_TWO +#include +#else #include +#endif +#endif #include "putty.h" @@ -48,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); } /* @@ -237,5 +242,6 @@ Backend raw_backend = { raw_size, raw_special, raw_socket, - raw_sendok + raw_sendok, + 1 };