X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/24d7f85497ff87203d0d201cf964fcf9009abbb6..d69a46c00d4706796c4060a91c5ab403d7438184:/telnet.c diff --git a/telnet.c b/telnet.c index f20488e3..7e612cf6 100644 --- a/telnet.c +++ b/telnet.c @@ -742,7 +742,7 @@ static int telnet_send(void *handle, char *buf, int len) while (p < buf + len) { char *q = p; - while (iswritable((unsigned char) *p) && p < buf + len) + while (p < buf + len && iswritable((unsigned char) *p)) p++; telnet->bufsize = sk_write(telnet->s, q, p - q);