X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=rlogin.c;h=3c86eee8575f20981ae725ed22fe71ef6ec334c7;hb=8da4fa506389910599c59b87ba1b799efd6d3ae1;hp=f582f0c0d736171e6215e82c13c7b8d3a2993ff9;hpb=0348f570771a0412609de947778cad9d5b3dca93;p=PuTTY.git diff --git a/rlogin.c b/rlogin.c index f582f0c0..3c86eee8 100644 --- a/rlogin.c +++ b/rlogin.c @@ -226,15 +226,10 @@ static const char *rlogin_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'; - } } /*