]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - raw.c
Use the new host_str* functions to improve IPv6 literal support.
[PuTTY.git] / raw.c
diff --git a/raw.c b/raw.c
index 1d9f854cd65f77e1b9b7cec754a58462133aaa2e..a7fbbc5cc5f32e8c23feae149dc53c5a3193795a 100644 (file)
--- a/raw.c
+++ b/raw.c
@@ -185,15 +185,10 @@ static const char *raw_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;