ossp-pkg/str/str_parse.c 1.21 -> 1.22
--- str_parse.c 2005/01/24 15:22:19 1.21
+++ str_parse.c 2005/10/12 08:24:30 1.22
@@ -297,6 +297,7 @@
char buf2[128];
char *buf_ptr;
str_vformat_t sf;
+ va_list ap_temp;
/*
* Caching support
@@ -564,7 +565,8 @@
sf.data[3].p = (char *)string;
sf.data[4].p = cap_vec;
sf.data[5].i = cap_num;
- l = str_vformat(&sf, buf_ptr, ap);
+ va_copy(ap_temp, ap);
+ l = str_vformat(&sf, buf_ptr, ap_temp);
/* allocate output buffer */
if ((*cpp = (char *)malloc(l+1)) == NULL) {
|
|