From 32ea9d3d83d0c98e4ddfe84dd93719973c7f17a7 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 25 Jan 2012 13:22:35 -0600 Subject: [PATCH] Fix some warnings when using -Wformat-security on Alpine. --- src/s_auth.c | 2 +- src/sslproc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/s_auth.c b/src/s_auth.c index 327c7cde..0ff5e191 100644 --- a/src/s_auth.c +++ b/src/s_auth.c @@ -117,7 +117,7 @@ typedef enum } ReportType; -#define sendheader(c, r) sendto_one_notice(c, HeaderMessages[(r)]) +#define sendheader(c, r) sendto_one_notice(c, "%s", HeaderMessages[(r)]) static rb_dlink_list auth_poll_list; static rb_bh *auth_heap; diff --git a/src/sslproc.c b/src/sslproc.c index 178fde32..832b37a5 100644 --- a/src/sslproc.c +++ b/src/sslproc.c @@ -455,12 +455,12 @@ ssl_process_cmd_recv(ssl_ctl_t * ctl) break; case 'I': ssl_ok = 0; - ilog(L_MAIN, cannot_setup_ssl); + ilog(L_MAIN, "%s", cannot_setup_ssl); sendto_realops_snomask(SNO_GENERAL, L_ALL, cannot_setup_ssl); case 'U': zlib_ok = 0; ssl_ok = 0; - ilog(L_MAIN, no_ssl_or_zlib); + ilog(L_MAIN, "%s", no_ssl_or_zlib); sendto_realops_snomask(SNO_GENERAL, L_ALL, no_ssl_or_zlib); ssl_killall(); break;