From 295599ab2cd284de3a777994d68dfef857874a21 Mon Sep 17 00:00:00 2001 From: rburchell Date: Fri, 14 Nov 2008 20:02:39 +0000 Subject: Fix potential format vulnerability. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1669 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/bs_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; } -- cgit