add missing call to va_end() for copied va_list

The man page stdarg(3) states that each invocation of `va_copy()` must
be matched by a corresponding invocation of `va_end()` in the same
function.

Signed-off-by: Max <max@mxzero.net>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
Max 2023-11-06 16:16:37 +01:00 committed by Lukas Fleischer
parent daa7da0d0b
commit f6090c7e17

View File

@ -85,6 +85,7 @@ int string_vcatf(struct string *sb, const char *format, va_list ap)
ap2);
}
sb->len += n;
va_end(ap2);
return n;
}