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 */
ioctl(STDIN_FILENO, TCFLSH, (void *)0);
pass = getpass("Password: "); putchar('\n');
pass = getpass("Password: ");
if (!pass)
eprintf("getpass:");
if (pw_check(pw, pass) <= 0)