X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/d8d6c7e50e1fcf5171ec15f8a3e9bdcd141f0b64..7e9b7f4bafac235430a05da4c55a2b5502ed6e64:/rlogin.c diff --git a/rlogin.c b/rlogin.c index ba7dd37b..a80d12e3 100644 --- a/rlogin.c +++ b/rlogin.c @@ -68,7 +68,8 @@ static int rlogin_receive(Plug plug, int urgent, char *data, int len) } firstbyte = 0; } - c_write(data, len); + if (len > 0) + c_write(data, len); } return 1; }