From 0ab021951b405906d0d559ee0be717a643d9b0c7 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 23 Sep 2020 06:34:30 -0500 Subject: Chris Sarra pointed out that nerfing xprintf() so it doesn't actually flush broke the password: prompt. --- lib/password.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/password.c') 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)) { -- cgit v1.2.3