mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-12 01:00:44 +01:00
-1 is only returned when there is an encoding error, and the va_list argument is indeterminate after being passed to vsnprintf. Use the return value to determine the buffer length, and call va_end and then va_start before vsnprintf is called again.