X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/96621a840849b4afb6582424d2a1eea08a0be418..22dcdc3b1a1c7c820fabe3ebaae8be6b09b4408e:/plink.c diff --git a/plink.c b/plink.c index 76ed437c..ebe5bcc9 100644 --- a/plink.c +++ b/plink.c @@ -423,8 +423,10 @@ int main(int argc, char **argv) { strncpy(cfg.host, p, sizeof(cfg.host)-1); cfg.host[sizeof(cfg.host)-1] = '\0'; cfg.port = default_port; - } else + } else { cfg = cfg2; + cfg.remote_cmd_ptr = cfg.remote_cmd; + } } else { *r++ = '\0'; strncpy(cfg.username, p, sizeof(cfg.username)-1);