The redirection operator I wanted was >>, not >.
[sgt/putty] / unix / uxcons.c
index 844b674..779ebf4 100644 (file)
@@ -25,6 +25,10 @@ void cleanup_exit(int code)
      * Clean up.
      */
     sk_cleanup();
+
+    if (cfg.protocol == PROT_SSH)
+       random_save_seed();
+
     exit(code);
 }
 
@@ -258,6 +262,7 @@ void old_keyfile_warning(void)
 
 void logevent(void *frontend, char *string)
 {
+    log_eventlog(logctx, string);
 }
 
 int console_get_line(const char *prompt, char *str,
@@ -290,7 +295,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;
 }