From a4dddfd5f121c9cc74e05e08a568c6a9febfd56f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 6 Jan 2024 14:34:00 +0000 Subject: Mark format strings with the GNU printf attribute. --- modules/commands/bs_kick.cpp | 2 +- modules/protocol/bahamut.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/commands/bs_kick.cpp b/modules/commands/bs_kick.cpp index 454760a12..e1919e241 100644 --- a/modules/commands/bs_kick.cpp +++ b/modules/commands/bs_kick.cpp @@ -1070,7 +1070,7 @@ class BSKick : public Module } } - void bot_kick(ChannelInfo *ci, User *u, const char *message, ...) + void bot_kick(ChannelInfo *ci, User *u, const char *message, ...) ATTR_FORMAT(4, 5) { va_list args; char buf[1024]; diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index b5e4182e1..f58a40a16 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -336,7 +336,7 @@ struct IRCDMessageMode : IRCDMessage { User *u = User::Find(params[0]); if (u) - u->SetModesInternal(source, "%s", params[1].c_str()); + u->SetModesInternal(source, params[1]); } } }; -- cgit