mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-18 14:17:03 +01:00
2002-09-04 Neal H. Walfield <neal@g10code.de>
* vasprintf.c (vasprintf) [va_copy]: Use va_copy. [!va_copy && __va_copy]: Use __va_copy. [!va_copy && !__va_copy]: Only now fall back to using memcpy.
This commit is contained in:
parent
712af9e3ca
commit
cab999130d
@ -1,3 +1,9 @@
|
||||
2002-09-04 Neal H. Walfield <neal@g10code.de>
|
||||
|
||||
* vasprintf.c (vasprintf) [va_copy]: Use va_copy.
|
||||
[!va_copy && __va_copy]: Use __va_copy.
|
||||
[!va_copy && !__va_copy]: Only now fall back to using memcpy.
|
||||
|
||||
2002-08-21 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* errors.h: Added STATUS_IMPORT_PROBLEM.
|
||||
|
@ -39,8 +39,15 @@ vasprintf (char **result, const char *format, va_list *args)
|
||||
int total_width = strlen (format) + 1;
|
||||
va_list ap;
|
||||
|
||||
/* FIXME: use va_copy() */
|
||||
#ifdef va_copy
|
||||
va_copy (ap, args);
|
||||
#else
|
||||
#ifdef __va_copy
|
||||
__va_copy (ap, args);
|
||||
#else
|
||||
memcpy (&ap, args, sizeof (va_list));
|
||||
#endif /* __va_copy */
|
||||
#endif /* va_copy */
|
||||
|
||||
while (*p != '\0')
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user