mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
(vasprintf): ARGS should not be a pointer. Fixed
segv on Solaris. Reported by Andrew J. Schorr.
This commit is contained in:
parent
dba40e5e45
commit
53272a25fc
2
THANKS
2
THANKS
@ -1,3 +1,5 @@
|
||||
|
||||
|
||||
Richard Lefebvre rick@CERCA.UMontreal.CA
|
||||
Andrew J. Schorr aschorr@telemetry-investments.com
|
||||
|
||||
|
@ -1,3 +1,8 @@
|
||||
2003-11-13 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* vasprintf.c (vasprintf): ARGS should not be a pointer. Fixed
|
||||
segv on Solaris. Reported by Andrew J. Schorr.
|
||||
|
||||
2003-11-12 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* maperror.c (map_ksba_err, map_gcry_err, map_kbx_err): Removed.
|
||||
|
@ -31,7 +31,7 @@ int global_total_width;
|
||||
#endif
|
||||
|
||||
int
|
||||
vasprintf (char **result, const char *format, va_list *args)
|
||||
vasprintf (char **result, const char *format, va_list args)
|
||||
{
|
||||
const char *p = format;
|
||||
/* Add one to make sure that it is never zero, which might cause malloc
|
||||
@ -120,7 +120,7 @@ vasprintf (char **result, const char *format, va_list *args)
|
||||
#endif
|
||||
*result = malloc (total_width);
|
||||
if (*result != NULL)
|
||||
return vsprintf (*result, format, *args);
|
||||
return vsprintf (*result, format, args);
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user