Merge pull request #241 from kekePower/gcc730compilationfix
Fix compile issue for "-Werror=format-security" option (e.g. gcc 7.3.0)
This commit is contained in:
commit
f7e4195766
@ -517,7 +517,7 @@ read_password(char *password, int size)
|
||||
|
||||
if (tcgetattr(STDIN_FILENO, &tios) == 0)
|
||||
{
|
||||
fprintf(stderr, prompt);
|
||||
fputs(prompt, stderr);
|
||||
tios.c_lflag &= ~ECHO;
|
||||
tcsetattr(STDIN_FILENO, TCSANOW, &tios);
|
||||
istty = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user