diff options
author | Werner Koch <[email protected]> | 2003-11-13 07:37:18 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-11-13 07:37:18 +0000 |
commit | 53272a25fc0ae7098a2cd1e7eab550ce080438a7 (patch) | |
tree | 182ce80f54ce71079bcd5cff5a9375e4e79fc708 /common/vasprintf.c | |
parent | Mainly changes to adjust for the changed KSBA API. (diff) | |
download | gnupg-53272a25fc0ae7098a2cd1e7eab550ce080438a7.tar.gz gnupg-53272a25fc0ae7098a2cd1e7eab550ce080438a7.zip |
(vasprintf): ARGS should not be a pointer. Fixed
segv on Solaris. Reported by Andrew J. Schorr.
Diffstat (limited to '')
-rw-r--r-- | common/vasprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/vasprintf.c b/common/vasprintf.c index 2af2d3a20..9efea33f2 100644 --- a/common/vasprintf.c +++ b/common/vasprintf.c @@ -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; } |