X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/b3ebaa287b8a57f3d35675889adc86f6384eb458..5555d393c727cca12fce612a469bacb9b627eb3b:/psftp.c diff --git a/psftp.c b/psftp.c index 94d7364b..f528c218 100644 --- a/psftp.c +++ b/psftp.c @@ -1722,7 +1722,7 @@ static int psftp_connect(char *userhost, char *user, int portnumber) /* * Enact command-line overrides. */ - cmdline_run_saved(); + cmdline_run_saved(&cfg); /* * Trim leading whitespace off the hostname if it's there. @@ -1883,7 +1883,7 @@ int main(int argc, char *argv[]) userhost = dupstr(argv[i]); continue; } - ret = cmdline_process_param(argv[i], i+1