-2003-11-13 Werner Koch <wk@gnupg.org>
-
- * vasprintf.c (int_vasprintf): ARGS should not be a pointer.
-
2003-10-31 Werner Koch <wk@gnupg.org>
* keylist.c (parse_timestamp): Detect ISO 8601 timestamps and try
int global_total_width;
#endif
-static int int_vasprintf (char **, const char *, va_list);
+static int int_vasprintf (char **, const char *, va_list *);
static int
int_vasprintf (result, format, args)
char **result;
const char *format;
- va_list args;
+ va_list *args;
{
const char *p = format;
/* Add one to make sure that it is never zero, which might cause malloc
int total_width = strlen (format) + 1;
va_list ap;
- va_copy (ap, args);
+ va_copy (ap, *args);
while (*p != '\0')
{
#endif
*result = malloc (total_width);
if (*result != NULL)
- return vsprintf (*result, format, args);
+ return vsprintf (*result, format, *args);
else
return 0;
}