ossp-pkg/var/var.c 1.101 -> 1.102
--- var.c 2004/02/17 09:21:06 1.101
+++ var.c 2004/04/04 08:04:34 1.102
@@ -2621,9 +2621,9 @@
return VAR_RC(VAR_ERR_INVALID_ARGUMENT);
/* determine formatting buffer length */
- apbak = ap;
+ va_copy(apbak, ap);
nBuf = var_mvsnprintf(NULL, 0, fmt, ap);
- ap = apbak;
+ va_copy(ap, apbak);
if (nBuf == -1)
return VAR_RC(VAR_ERR_FORMATTING_FAILURE);
|
|