X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=config.c;fp=config.c;h=68aaee7470cebb9b9515912e717bc609708f3bd4;hb=6d563fce5010eda4b3d09368642f896a6b86fd8c;hp=03dcbf759ba469be46f43135993abf15d28a7eb6;hpb=1e13fdc5729a9af6c19f72485b85eb2c129a3258;p=PuTTY.git diff --git a/config.c b/config.c index 03dcbf75..68aaee74 100644 --- a/config.c +++ b/config.c @@ -358,6 +358,7 @@ static void sessionsaver_handler(union control *ctrl, void *dlg, /* If at this point we have a valid session, go! */ if (*cfg2.host) { *cfg = cfg2; /* structure copy */ + cfg->remote_cmd_ptr = cfg->remote_cmd; /* nasty */ dlg_end(dlg, 1); } else dlg_beep(dlg);