X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=telnet.c;h=098db292cc05a0c9a64e50db80ecf04954f78a71;hb=7549f2da40d3666f2c9527d84d9ed5468e231691;hp=6a56da7745c246137aa57400d247002f9acb93ef;hpb=ea301bdd9b892a5e70692f82f5c0b98bd585e775;p=PuTTY.git diff --git a/telnet.c b/telnet.c index 6a56da77..098db292 100644 --- a/telnet.c +++ b/telnet.c @@ -818,15 +818,10 @@ static const char *telnet_init(void *frontend_handle, void **backend_handle, sfree(*realhost); *realhost = dupstr(loghost); - colon = strrchr(*realhost, ':'); - if (colon) { - /* - * FIXME: if we ever update this aspect of ssh.c for - * IPv6 literal management, this should change in line - * with it. - */ + + colon = host_strrchr(*realhost, ':'); + if (colon) *colon++ = '\0'; - } } return NULL;