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:
@@ -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).
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user