diff options
author | Chris Robinson <[email protected]> | 2022-09-13 19:55:32 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-09-14 01:40:50 -0700 |
commit | c9000979db26ca1c726aaaca3a53a8bf12e0d659 (patch) | |
tree | c08af0576700c914bd5199d579f40655997c8004 /core/ambdec.cpp | |
parent | 00bce1fba480a183ac72a9934466403da097d5ba (diff) |
Use the correct va_list for the second vsnprintf
Diffstat (limited to 'core/ambdec.cpp')
-rw-r--r-- | core/ambdec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string> make_error(size_t linenum, const char *fmt, ...) if(unlikely(msglen >= 0 && static_cast<size_t>(msglen) >= str.size()-plen)) { str.resize(static_cast<size_t>(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); |