X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxputty.c;h=c7b0fcb2209c05a97db9be7caf7d6d71ec9543ad;hb=f004bcca17a789356c32527a396b68b71a773db2;hp=fbaf029d3b769478903356b18283d205f588a14d;hpb=13bac5ed69ce4cd603a21c940f82370ef8b0a44d;p=PuTTY.git diff --git a/unix/uxputty.c b/unix/uxputty.c index fbaf029d..c7b0fcb2 100644 --- a/unix/uxputty.c +++ b/unix/uxputty.c @@ -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);