summaryrefslogtreecommitdiffstats
path: root/common/password.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/password.c')
-rw-r--r--common/password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/password.c b/common/password.c
index 05e61801f0..d52b746f0f 100644
--- a/common/password.c
+++ b/common/password.c
@@ -63,7 +63,7 @@ int password(unsigned char *passwd, size_t length, int flags, int timeout)
do {
if (tstc()) {
- ch = getc();
+ ch = getchar();
switch (ch) {
case '\r':