From 2bfc8d23c897591e45ce82753772e8f0a258e798 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 3 Nov 2013 04:38:11 +0100 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/passphrase.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/passphrase.c') diff --git a/src/passphrase.c b/src/passphrase.c index cd88c7f..4b6af86 100644 --- a/src/passphrase.c +++ b/src/passphrase.c @@ -72,6 +72,8 @@ char* get_passphrase(void) */ void disable_echo() { + struct termios stty; + tcgetattr(STDIN_FILENO, &saved_stty); stty = saved_stty; stty.c_lflag &= ~ECHO; -- cgit v1.2.3-70-g09d2