From: Damien Miller Date: Thu, 15 Oct 2015 23:53:14 +0000 (+1100) Subject: need va_copy before va_start X-Git-Tag: V_7_2_P1~151 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f754e29dd3760fc0b172c1220f18b753fb0957e;p=thirdparty%2Fopenssh-portable.git need va_copy before va_start reported by Nicholas Lemonias --- diff --git a/openbsd-compat/bsd-asprintf.c b/openbsd-compat/bsd-asprintf.c index 3368195d4..db57acce9 100644 --- a/openbsd-compat/bsd-asprintf.c +++ b/openbsd-compat/bsd-asprintf.c @@ -47,6 +47,7 @@ vasprintf(char **str, const char *fmt, va_list ap) char *string, *newstr; size_t len; + va_start(ap); VA_COPY(ap2, ap); if ((string = malloc(INIT_SZ)) == NULL) goto fail;