summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-14 20:02:39 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-14 20:02:39 +0000
commit295599ab2cd284de3a777994d68dfef857874a21 (patch)
tree4211bfc4ba2496ff9f981371edac4c3e50ba6650
parente289e5ade0bb32631e41a534cf3eab45b3bfebe4 (diff)
Fix potential format vulnerability.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1669 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/core/bs_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/bs_info.c b/src/core/bs_info.c
index 8404d96e4..2c90dba9d 100644
--- a/src/core/bs_info.c
+++ b/src/core/bs_info.c
@@ -250,7 +250,7 @@ void send_bot_channels(User * u, BotInfo * bi)
for (ci = chanlists[i]; ci; ci = ci->next) {
if (ci->bi == bi) {
if (strlen(buf) + strlen(ci->name) > 300) {
- notice_user(s_BotServ, u, buf);
+ notice_user(s_BotServ, u, "%s", buf);
*buf = 0;
end = buf;
}