aboutsummaryrefslogtreecommitdiff
path: root/devel/ossp-ex/files/extra-patch-ts.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/ossp-ex/files/extra-patch-ts.c')
-rw-r--r--devel/ossp-ex/files/extra-patch-ts.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/ossp-ex/files/extra-patch-ts.c b/devel/ossp-ex/files/extra-patch-ts.c
new file mode 100644
index 000000000000..6ef80977b360
--- /dev/null
+++ b/devel/ossp-ex/files/extra-patch-ts.c
@@ -0,0 +1,11 @@
+--- ts.c.orig Wed Mar 24 17:36:35 2004
++++ ts.c Wed Mar 24 17:36:49 2004
+@@ -202,7 +202,7 @@
+
+ if (format == NULL || ap == NULL)
+ return NULL;
+- ap2 = ap;
++ va_copy(ap2, ap);
+ if ((n = ts_suite_mvxprintf(NULL, 0, format, ap)) == -1)
+ return NULL;
+ if ((buffer = (char *)malloc(n+1)) == NULL)