Fix warnings for format-string-security

This commit is contained in:
Jonas Mueller 2019-11-05 20:11:44 +01:00
parent 125458df51
commit ef8233a839

View File

@ -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);
}
}
}