]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - cmdline.c
Use the new host_str* functions to improve IPv6 literal support.
[PuTTY_svn.git] / cmdline.c
index bafb939914af4ca0ea24165e40d104fcadff2bd1..0c7ef4c91c98ad721403b186d818881587600a16 100644 (file)
--- a/cmdline.c
+++ b/cmdline.c
@@ -261,9 +261,9 @@ int cmdline_process_param(char *p, char *value, int need_save, Conf *conf)
 
             type = p[1];               /* 'L' or 'R' */
 
-           q = qq = strchr(value, ':');
+           q = qq = host_strchr(value, ':');
            while (qq) {
-               char *qqq = strchr(qq+1, ':');
+               char *qqq = host_strchr(qq+1, ':');
                if (qqq)
                    q = qq;
                qq = qqq;
@@ -301,7 +301,7 @@ int cmdline_process_param(char *p, char *value, int need_save, Conf *conf)
        UNAVAILABLE_IN(TOOLTYPE_FILETRANSFER | TOOLTYPE_NONNETWORK);
        SAVEABLE(0);
 
-       portp = strchr(value, ':');
+       portp = host_strchr(value, ':');
        if (!portp) {
            cmdline_error("-nc expects argument of form 'host:port'");
            return ret;