From 53272a25fc0ae7098a2cd1e7eab550ce080438a7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 13 Nov 2003 07:37:18 +0000 Subject: (vasprintf): ARGS should not be a pointer. Fixed segv on Solaris. Reported by Andrew J. Schorr. --- common/vasprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/vasprintf.c') 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; } -- cgit v1.2.3