aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-09-23 06:34:30 -0500
committerRob Landley <rob@landley.net>2020-09-23 06:34:30 -0500
commit0ab021951b405906d0d559ee0be717a643d9b0c7 (patch)
tree3728794e3a4371c8424a438f7bb5e35e9931b0df /lib
parent68de708ac569c060f9234dd3120854cbef513c53 (diff)
downloadtoybox-0ab021951b405906d0d559ee0be717a643d9b0c7.tar.gz
Chris Sarra pointed out that nerfing xprintf() so it doesn't actually flush
broke the password: prompt.
Diffstat (limited to 'lib')
-rw-r--r--lib/password.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/password.c b/lib/password.c
index 432905cc..ab240aed 100644
--- a/lib/password.c
+++ b/lib/password.c
@@ -62,7 +62,7 @@ int read_password(char *buf, int buflen, char *mesg)
tcflush(0, TCIFLUSH);
xset_terminal(0, 1, 0, &oldtermio);
- xprintf("%s", mesg);
+ dprintf(1, "%s", mesg);
for (i=0; i < buflen-1; i++) {
if ((ret = read(0, buf+i, 1)) < 0 || (!ret && !i)) {