summaryrefslogtreecommitdiff
path: root/irc/tr-ircd/files/patch-ircsprintf.c
blob: b988c2d2df4072e67a079adb015f0681b9464cf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- src/ircsprintf.c.orig	Sat Aug 21 13:36:50 2004
+++ src/ircsprintf.c	Sat Aug 21 13:37:15 2004
@@ -316,7 +316,8 @@
     const char *format = pattern;
     char *buf = str;
     int len = 0;
-    va_list ap = vl;
+    va_list ap;
+    va_copy(ap,vl);
 
     while (*format) {
 	switch (*format) {