aboutsummaryrefslogtreecommitdiff
path: root/tools/plink/sshshare.c
diff options
context:
space:
mode:
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);