summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-09 20:21:56 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-09 20:21:56 +0000
commit560c2b2b8bb7fbd65f0326c3db9b4619224a5ae0 (patch)
tree46e355714c75b93496857f8d46cbab27b2843ed0 /src
parent048ddbeb2f571542f79238bda2bd6b689d45d667 (diff)
BUILD : 1.7.5 (379) BUGS : 176 NOTES : Fixed a possible segfault due to a bug in LogChannel
git-svn-id: svn://svn.anope.org/anope/trunk@379 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@249 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/log.c2
-rw-r--r--src/news.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index ec9ee2532..f4eac5c7b 100644
--- a/src/log.c
+++ b/src/log.c
@@ -161,7 +161,7 @@ void alog(const char *fmt, ...)
if (LogChannel && logchan && !debug && findchan(LogChannel)) {
char str[BUFSIZE];
vsnprintf(str, sizeof(str), fmt, args);
- privmsg(s_GlobalNoticer, LogChannel, str);
+ privmsg(s_GlobalNoticer, LogChannel, "%s", str);
}
va_end(args);
diff --git a/src/news.c b/src/news.c
index 44195a985..1227f6adc 100644
--- a/src/news.c
+++ b/src/news.c
@@ -1,5 +1,6 @@
/* News functions.
/* News functions.
+/* News functions.
*
* (C) 2003 Anope Team
* Contact us at info@anope.org
@@ -540,3 +541,4 @@ static int del_newsitem(int num, short type)
/*************************************************************************/
+