X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/c5e438ecf3f6d7b8caab10e43a452f3555149309..d9c40fd6ed72588278c633ee5db5c2eefad6ba7c:/unix/uxcons.c diff --git a/unix/uxcons.c b/unix/uxcons.c index 844b674f..197466ea 100644 --- a/unix/uxcons.c +++ b/unix/uxcons.c @@ -25,6 +25,10 @@ void cleanup_exit(int code) * Clean up. */ sk_cleanup(); + + if (cfg.protocol == PROT_SSH) + random_save_seed(); + exit(code); } @@ -290,7 +294,7 @@ int console_get_line(const char *prompt, char *str, str[i] = '\0'; if (is_pw) - fputs("\r\n", stdout); + fputs("\n", stdout); } return 1; }