summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkekePower <kekePower@users.noreply.github.com>2018-01-29 20:35:44 +0100
committerGitHub <noreply@github.com>2018-01-29 20:35:44 +0100
commit8376afac54a53c29cd77693a3f85fe0e14256ae0 (patch)
tree37ab57e32f45994e9934403cd74bd625784f7854
parent54c38f7f62c2a0341132db007bf2dfcf6886c910 (diff)
downloadrdesktop-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdesktop.c b/rdesktop.c
index 298b2b6..085f9b5 100644
--- a/rdesktop.c
+++ b/rdesktop.c
@@ -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;