diff options
-rw-r--r-- | libbb/bb_askpass.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c index 1ae1520d9..42ccd66d3 100644 --- a/libbb/bb_askpass.c +++ b/libbb/bb_askpass.c | |||
@@ -44,6 +44,7 @@ char *bb_askpass(int timeout, const char * prompt) | |||
44 | static char passwd[PWD_BUFFER_SIZE]; | 44 | static char passwd[PWD_BUFFER_SIZE]; |
45 | 45 | ||
46 | tcgetattr(STDIN_FILENO, &old); | 46 | tcgetattr(STDIN_FILENO, &old); |
47 | tcflush(STDIN_FILENO, TCIFLUSH); | ||
47 | 48 | ||
48 | size = sizeof(passwd); | 49 | size = sizeof(passwd); |
49 | ret = passwd; | 50 | ret = passwd; |