]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxputty.c
Merge branch 'pre-0.64'
[PuTTY.git] / unix / uxputty.c
index fbaf029d3b769478903356b18283d205f588a14d..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';
@@ -122,6 +121,9 @@ char *platform_get_x_display(void) {
     return dupstr(display);
 }
 
+const int share_can_be_downstream = TRUE;
+const int share_can_be_upstream = TRUE;
+
 int main(int argc, char **argv)
 {
     extern int pt_main(int argc, char **argv);