Merge remote branch 'gregkh/master'
authorAmir Mohammad Saied <amirsaied@gmail.com>
Thu, 31 Dec 2009 10:39:25 +0000 (14:09 +0330)
committerAmir Mohammad Saied <amirsaied@gmail.com>
Thu, 31 Dec 2009 10:39:25 +0000 (14:09 +0330)
1  2 
bti.c

diff --cc bti.c
--- 1/bti.c
--- 2/bti.c
+++ b/bti.c
@@@ -671,9 -669,11 +672,11 @@@ static void read_password(char *buf, si
        tp.c_lflag &= (~ECHO);
        tcsetattr(0, TCSANOW, &tp);
  
 -      fprintf(stdout, "Enter twitter password: ");
 +      fprintf(stdout, "Enter password: ");
        fflush(stdout);
-       scanf("%79s", pwd);
+       tcflow(0, TCOOFF);
+       retval = scanf("%79s", pwd);
+       tcflow(0, TCOON);
        fprintf(stdout, "\n");
  
        tcsetattr(0, TCSANOW, &old);