ossp-pkg/var/ts.c 1.4 -> 1.5
--- ts.c 2003/02/14 21:17:07 1.4
+++ ts.c 2004/04/04 08:04:34 1.5
@@ -206,7 +206,7 @@
if (format == 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)
|
|