From ef8233a83989ddae2f6c9bf6578b317e172332e0 Mon Sep 17 00:00:00 2001 From: Jonas Mueller Date: Tue, 5 Nov 2019 20:11:44 +0100 Subject: [PATCH] Fix warnings for format-string-security --- sslh-main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sslh-main.c b/sslh-main.c index bd3594e..1af0dc6 100644 --- a/sslh-main.c +++ b/sslh-main.c @@ -115,7 +115,7 @@ static void printsettings(void) } -/* To removed in v1.21 */ +/* To be removed in v1.21 */ const char* ssl_err_msg = "Usage of 'ssl' setting is deprecated and will be removed in v1.21. Please use 'tls' instead\n"; void ssl_to_tls(char* setting) { @@ -126,7 +126,7 @@ void ssl_to_tls(char* setting) } -/* Turn 'ssl' command line option to 'tls'. To removed in v1.21 */ +/* Turn 'ssl' command line option to 'tls'. To be removed in v1.21 */ void cmd_ssl_to_tls(int argc, char* argv[]) { int i; @@ -135,7 +135,7 @@ void cmd_ssl_to_tls(int argc, char* argv[]) strcpy(argv[i], "--tls"); /* foreground option not parsed yet, syslog not open, just print on * stderr and hope for the best */ - fprintf(stderr, ssl_err_msg); + fprintf(stderr, "%s", ssl_err_msg); } } }