diff options
author | kekePower <kekePower@users.noreply.github.com> | 2018-01-29 20:35:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-29 20:35:44 +0100 |
commit | 8376afac54a53c29cd77693a3f85fe0e14256ae0 (patch) | |
tree | 37ab57e32f45994e9934403cd74bd625784f7854 | |
parent | 54c38f7f62c2a0341132db007bf2dfcf6886c910 (diff) | |
download | rdesktop-8376afac54a53c29cd77693a3f85fe0e14256ae0.zip |
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.
-rw-r--r-- | rdesktop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |