1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 04:13:13 +02:00

- Fix misuse of stdarg.h macros when calling vsyslog() (#4065 by Jimini).

This commit is contained in:
Nathan Phillip Brink
2012-01-02 20:20:07 +00:00
parent 1adc59893d
commit d9e83f70e3
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -2346,3 +2346,4 @@
- Make default service stamp 0 (zero) again, instead of '*' which was
introduced by ESVID changes a few days ago. This makes anope happy,
and also means nothing will change in a non-ESVID scenario.
- Fix misuse of stdarg.h macros when calling vsyslog() (#4065 by Jimini).
+2
View File
@@ -293,6 +293,8 @@ void ircd_log(int flags, char *format, ...)
#ifdef HAVE_SYSLOG
if (!stricmp(logs->file, "syslog") && logs->flags & flags) {
#ifdef HAVE_VSYSLOG
va_end(ap);
va_start(ap, format);
vsyslog(LOG_INFO, format, ap);
#else
/* %s just to be safe */