+2007-09-24 Bruno Haible <bruno@clisp.org>
+
+ * lib/vasprintf.c (int_vasprintf): Use va_copy.
+ * modules/vasprintf.diff: Add dependency to stdarg.
+ Reported by Cristian Baboi <cristi@ot.onrc.ro>.
+
2007-09-01 Bruno Haible <bruno@clisp.org>
* lib/linebreak.c.diff: Update.
/* Add one to make sure that it is never zero, which might cause malloc
to return NULL. */
size_t total_width = strlen (format) + 1;
- va_list ap = *args;
+ va_list ap;
+ va_copy (ap, *args);
while (*p != '\0')
{
if (*p++ == '%')
-*** vasprintf.orig 2007-03-27 22:18:12.000000000 +0200
---- vasprintf 2007-05-13 18:48:37.000000000 +0200
+*** vasprintf.orig 2007-09-19 00:04:41.000000000 +0200
+--- vasprintf 2007-09-25 00:54:11.000000000 +0200
***************
-*** 3,13 ****
+*** 3,14 ****
Files:
lib/vasprintf.c
m4/vasprintf.m4
Depends-on:
-- vasnprintf
+ extensions
+! vasnprintf
+ stdio
+
+ configure.ac:
+--- 3,13 ----
+
+ Files:
+ lib/vasprintf.c
+ m4/vasprintf.m4
+
+ Depends-on:
+ extensions
+! stdarg
stdio
configure.ac:
---- 3,11 ----