mirror of git://anongit.mindrot.org/openssh.git
need va_copy before va_start
reported by Nicholas Lemonias
This commit is contained in:
parent
eb6c50d82a
commit
0f754e29dd
|
@ -47,6 +47,7 @@ vasprintf(char **str, const char *fmt, va_list ap)
|
||||||
char *string, *newstr;
|
char *string, *newstr;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
|
va_start(ap);
|
||||||
VA_COPY(ap2, ap);
|
VA_COPY(ap2, ap);
|
||||||
if ((string = malloc(INIT_SZ)) == NULL)
|
if ((string = malloc(INIT_SZ)) == NULL)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
Loading…
Reference in New Issue