(vasprintf): Also fixed the prototype.

This commit is contained in:
Werner Koch 2003-11-13 19:15:38 +00:00
parent 53272a25fc
commit 9b32497c7e
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2003-11-13 Werner Koch <wk@gnupg.org>
* util.h (vasprintf): Also fixed the prototype.
* vasprintf.c (vasprintf): ARGS should not be a pointer. Fixed
segv on Solaris. Reported by Andrew J. Schorr.

View File

@ -112,7 +112,7 @@ int is_file_compressed (const char *s, int *ret_rc);
/*-- replacement functions from funcname.c --*/
#if !HAVE_VASPRINTF
#include <stdarg.h>
int vasprintf (char **result, const char *format, va_list *args);
int vasprintf (char **result, const char *format, va_list args);
int asprintf (char **result, const char *format, ...);
#endif