Apply minor fixes from patches@, SF tracker, and others.
[ircu2.10.12-pk.git] / ircd / ircd_log.c
index 740feb0e67d2b30540207131fd38c7b7dea57fc0..c9dc203447696ad6881840d61620782a3cf48209 100644 (file)
@@ -395,7 +395,7 @@ log_vwrite(enum LogSys subsys, enum LogLevel severity, unsigned int flags,
 
   /* Build the basic log string */
   vd.vd_format = fmt;
-  vd.vd_args = vl;
+  va_copy(vd.vd_args, vl);
 
   /* save the length for writev */
   /* Log format: "SYSTEM [SEVERITY]: log message" */