From 7e71d8689fd6554a381a0981f7d227dc104c69f7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 16 Mar 2011 11:10:46 +1100 Subject: [PATCH] Put carriage returns in right place after password prompts. --- lrzip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lrzip.c b/lrzip.c index 9d49d0d..48b38e0 100644 --- a/lrzip.c +++ b/lrzip.c @@ -470,8 +470,9 @@ retry_pass: print_output("Enter passphrase: "); if (unlikely(fgets(passphrase, PASS_LEN - SALT_LEN, stdin) == NULL)) failure("Empty passphrase\n"); + print_output("\n"); if (make_hash) { - print_output("\nRe-enter passphrase: "); + print_output("Re-enter passphrase: "); if (unlikely(fgets(testphrase, PASS_LEN - SALT_LEN, stdin) == NULL)) failure("Empty passphrase\n"); print_output("\n"); @@ -480,7 +481,6 @@ retry_pass: goto retry_pass; } } - print_output("\n"); termios_p.c_lflag |= ECHO; tcsetattr(fileno(stdin), 0, &termios_p); free(testphrase);