aboutsummaryrefslogtreecommitdiff
path: root/tools/plink/sshshare.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2014-04-23 23:26:24 +0200
committermarha <marha@users.sourceforge.net>2014-04-23 23:26:24 +0200
commit03418d6378fe72bea2ff4b941792054dd208b65d (patch)
treeb9ceb2d3dc762f3813c065a8b04aab7c6c8f4bab /tools/plink/sshshare.c
parentd26ea2f474c48afa7d3c261572da5d85b7b62bd8 (diff)
downloadvcxsrv-03418d6378fe72bea2ff4b941792054dd208b65d.tar.gz
vcxsrv-03418d6378fe72bea2ff4b941792054dd208b65d.tar.bz2
vcxsrv-03418d6378fe72bea2ff4b941792054dd208b65d.zip
Synchrnoised plink with svn version of putty
Diffstat (limited to 'tools/plink/sshshare.c')
-rw-r--r--tools/plink/sshshare.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/plink/sshshare.c b/tools/plink/sshshare.c
index bd4602b5b..bf2a64c29 100644
--- a/tools/plink/sshshare.c
+++ b/tools/plink/sshshare.c
@@ -1763,7 +1763,7 @@ static int share_receive(Plug plug, int urgent, char *data, int len)
crGetChar(c);
if (c == '\012')
break;
- if (cs->recvlen > sizeof(cs->recvbuf)) {
+ if (cs->recvlen >= sizeof(cs->recvbuf)) {
char *buf = dupprintf("Version string far too long\n");
share_disconnect(cs, buf);
sfree(buf);