X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=telnet.c;fp=telnet.c;h=098db292cc05a0c9a64e50db80ecf04954f78a71;hb=62a380a7a673d41f032777a54640825a5f8a1a25;hp=6a56da7745c246137aa57400d247002f9acb93ef;hpb=699ae7589a04b9730823697e6fe8f95e7506db95;p=PuTTY_svn.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;