[hackers] [ubase] No need for putchar('\n') after getpass() || sin
commit 30715f1eec6e3aeb7079371327ecc234cdde31d2
Author: sin <sin_AT_2f30.org>
Date: Thu Sep 4 11:51:25 2014 +0100
No need for putchar('\n') after getpass()
diff --git a/login.c b/login.c
index f2d3a42..691964f 100644
--- a/login.c
+++ b/login.c
_AT_@ -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)
Received on Thu Sep 04 2014 - 12:52:21 CEST
This archive was generated by hypermail 2.3.0
: Thu Sep 04 2014 - 13:00:13 CEST