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

This commit is contained in:
sin 2014-09-04 11:51:25 +01:00
parent 4a324f6359
commit 30715f1eec

View File

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