From 8376afac54a53c29cd77693a3f85fe0e14256ae0 Mon Sep 17 00:00:00 2001 From: kekePower Date: Mon, 29 Jan 2018 20:35:44 +0100 Subject: [PATCH] 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. --- rdesktop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;