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:
Alexander Zakharov 2018-01-30 18:24:55 +03:00 committed by GitHub
commit f7e4195766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;