return string;
}
-void read_password(char *buf, size_t len)
+static void read_password(char *buf, size_t len)
{
char pwd[80];
+ int retval;
struct termios old;
struct termios tp;
fprintf(stdout, "Enter twitter password: ");
fflush(stdout);
- scanf("%79s", pwd);
+ tcflow(0, TCOOFF);
+ retval = scanf("%79s", pwd);
+ tcflow(0, TCOON);
fprintf(stdout, "\n");
tcsetattr(0, TCSANOW, &old);