]> granicus.if.org Git - sudo/commitdiff
Add missing carriage return before prompt when replay is done.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Sun, 3 Dec 2017 04:32:24 +0000 (21:32 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Sun, 3 Dec 2017 04:32:24 +0000 (21:32 -0700)
plugins/sudoers/sudoreplay.c

index 28b5c0bc7687c06f9f6ce1165348cd7aedfc7fc1..9d182c3e3a36afb9398a31e0e93f6092e61cd891 100644 (file)
@@ -746,6 +746,7 @@ restore_terminal_size(void)
 
     if (terminal_was_resized) {
        /* We are still in raw mode, hence the carriage return. */
+       putchar('\r');
        printf(U_("Replay finished, press any key to restore the terminal."));
        fflush(stdout);
        (void)getchar();