From c9000979db26ca1c726aaaca3a53a8bf12e0d659 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 13 Sep 2022 19:55:32 -0700 Subject: Use the correct va_list for the second vsnprintf --- core/ambdec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ambdec.cpp') diff --git a/core/ambdec.cpp b/core/ambdec.cpp index db8f45ab..8b1be0c7 100644 --- a/core/ambdec.cpp +++ b/core/ambdec.cpp @@ -64,7 +64,7 @@ al::optional make_error(size_t linenum, const char *fmt, ...) if(unlikely(msglen >= 0 && static_cast(msglen) >= str.size()-plen)) { str.resize(static_cast(msglen) + plen + 1u); - std::vsnprintf(&str[plen], str.size()-plen, fmt, args); + std::vsnprintf(&str[plen], str.size()-plen, fmt, args2); } va_end(args2); va_end(args); -- cgit v1.2.3