mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-30 01:05:14 +02:00
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;
|
||||
size_t len;
|
||||
|
||||
va_start(ap);
|
||||
VA_COPY(ap2, ap);
|
||||
if ((string = malloc(INIT_SZ)) == NULL)
|
||||
goto fail;
|
||||
|
Loading…
x
Reference in New Issue
Block a user