Fix to compile with GCC 7.3.0 and possibly fix a security issue

Did a google search and found this.
https://stackoverflow.com/questions/4419293/warning-format-not-a-string-literal-and-no-format-arguments/4419319#4419319

With this little fix, rdesktop compiled again using gcc 7.3.0.
This commit is contained in:
kekePower 2018-01-29 20:35:44 +01:00 committed by GitHub
parent 54c38f7f62
commit 8376afac54
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;