1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 12:03:14 +02:00

Mark format strings with the GNU printf attribute.

This commit is contained in:
Sadie Powell
2024-01-06 14:34:00 +00:00
parent 7ddc865cde
commit a4dddfd5f1
10 changed files with 30 additions and 24 deletions
+1 -1
View File
@@ -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];
+1 -1
View File
@@ -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]);
}
}
};