From a81e6a05515a4df80a52d8b5aa848646e73e66c6 Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 19 Mar 2018 12:38:41 -0300 Subject: root_commands: Fix -Wformat-security errors Showed up in debian builds --- root_commands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'root_commands.c') diff --git a/root_commands.c b/root_commands.c index 4988e382..27ef16d2 100644 --- a/root_commands.c +++ b/root_commands.c @@ -440,7 +440,7 @@ static void cmd_account(irc_t *irc, char **cmd) if (prpl == NULL) { char *msg = explain_unknown_protocol(cmd[2]); irc_rootmsg(irc, "Unknown protocol"); - irc_rootmsg(irc, msg); + irc_rootmsg(irc, "%s", msg); g_free(msg); return; } @@ -594,7 +594,7 @@ static void cmd_account(irc_t *irc, char **cmd) char *proto = set_getstr(&a->set, "_protocol_name"); char *msg = explain_unknown_protocol(proto); irc_rootmsg(irc, "Unknown protocol `%s'", proto); - irc_rootmsg(irc, msg); + irc_rootmsg(irc, "%s", msg); g_free(msg); } else { account_on(irc->b, a); @@ -1056,7 +1056,7 @@ static void cmd_blist(irc_t *irc, char **cmd) } if (error) { - irc_rootmsg(irc, error->message); + irc_rootmsg(irc, "%s", error->message); g_error_free(error); } -- cgit v1.2.3