aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2018-03-19 12:38:41 -0300
committerdequis <dx@dxzone.com.ar>2018-03-19 12:39:40 -0300
commita81e6a05515a4df80a52d8b5aa848646e73e66c6 (patch)
tree19ff39bf291fce9e663f7e9107d0e7355c3475a2 /root_commands.c
parent715abe43ac3edaa28df578216e0a2673fd746fc2 (diff)
root_commands: Fix -Wformat-security errors
Showed up in debian builds
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c6
1 files changed, 3 insertions, 3 deletions
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);
}