summaryrefslogtreecommitdiff
path: root/irc/tr-ircd/files/patch-src-ircsprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'irc/tr-ircd/files/patch-src-ircsprintf.c')
-rw-r--r--irc/tr-ircd/files/patch-src-ircsprintf.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/irc/tr-ircd/files/patch-src-ircsprintf.c b/irc/tr-ircd/files/patch-src-ircsprintf.c
new file mode 100644
index 000000000000..0e1010ce38ef
--- /dev/null
+++ b/irc/tr-ircd/files/patch-src-ircsprintf.c
@@ -0,0 +1,12 @@
+--- src/ircsprintf.c.orig Tue Feb 6 12:54:02 2007
++++ src/ircsprintf.c Tue Feb 6 12:54:20 2007
+@@ -336,7 +336,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) {