X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=telnet.c;h=098db292cc05a0c9a64e50db80ecf04954f78a71;hb=8da4fa506389910599c59b87ba1b799efd6d3ae1;hp=6a56da7745c246137aa57400d247002f9acb93ef;hpb=0348f570771a0412609de947778cad9d5b3dca93;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;