From: Simon Tatham Date: Thu, 29 Mar 2001 13:40:03 +0000 (+0000) Subject: Fix the detect_bugs routine, which was failing to find the right bit X-Git-Tag: r8855-g4f798d~2693 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=f0d3ba8ddd62b301aa021c275d263fad2d685bc0;p=PuTTY_svn.git Fix the detect_bugs routine, which was failing to find the right bit of the version string :-) git-svn-id: http://svn.tartarus.org/sgt/putty@1026 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index dba040bd..8e5dce7a 100644 --- a/ssh.c +++ b/ssh.c @@ -1128,7 +1128,9 @@ static void ssh_detect_bugs(char *vstring) { char *imp; /* pointer to implementation part */ imp = vstring; imp += strcspn(imp, "-"); + if (*imp) imp++; imp += strcspn(imp, "-"); + if (*imp) imp++; ssh_remote_bugs = 0;