plink: Development snapshot 2007-02-04:r7202 C:\putty059\WINDOWS>diff winplink.c "winplink original.c" 502,518c502 < // 20070204 01:40 patch for ipv6 addresses < // cfg.host[strcspn(cfg.host, ":")] = '\0'; < /* < * Trim a colon suffix off the hostname if it's there. In < * order to protect IPv6 address literals against this < * treatment, we do not do this if there's _more_ than one < * colon. < */ < { < char *c = strchr(cfg.host, ':'); < < if (c) { < char *d = strchr(c+1, ':'); < if (!d) < *c = '\0'; < } < } --- > cfg.host[strcspn(cfg.host, ":")] = '\0';