No need for putchar('\n') after getpass()
This commit is contained in:
parent
4a324f6359
commit
30715f1eec
2
login.c
2
login.c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user