]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxputty.c
Merge branch 'pre-0.64'
[PuTTY.git] / unix / uxputty.c
index 1e3604bae67b1f118fbc933b02b56decf809f9e5..c7b0fcb2209c05a97db9be7caf7d6d71ec9543ad 100644 (file)
@@ -76,8 +76,7 @@ int process_nonoption_arg(char *arg, Conf *conf, int *allow_launch)
             q += 2;
         conf_set_int(conf, CONF_protocol, PROT_TELNET);
         p = q;
-        while (*p && *p != ':' && *p != '/')
-            p++;
+        p += host_strcspn(p, ":/");
         c = *p;
         if (*p)
             *p++ = '\0';