]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - rlogin.c
Use the new host_str* functions to improve IPv6 literal support.
[PuTTY_svn.git] / rlogin.c
index f582f0c0d736171e6215e82c13c7b8d3a2993ff9..3c86eee8575f20981ae725ed22fe71ef6ec334c7 100644 (file)
--- 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';
-       }
     }
 
     /*