ubase

suckless linux base utils
git clone git://git.suckless.org/ubase
Log | Files | Refs | README | LICENSE

commit 30715f1eec6e3aeb7079371327ecc234cdde31d2
parent 4a324f635986087c8a609687cc7227f95a413fc4
Author: sin <sin@2f30.org>
Date:   Thu,  4 Sep 2014 11:51:25 +0100

No need for putchar('\n') after getpass()

Diffstat:
Mlogin.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/login.c b/login.c @@ -90,7 +90,7 @@ main(int argc, char *argv[]) /* Flush pending input */ ioctl(STDIN_FILENO, TCFLSH, (void *)0); - pass = getpass("Password: "); putchar('\n'); + pass = getpass("Password: "); if (!pass) eprintf("getpass:"); if (pw_check(pw, pass) <= 0)