Fix possible buffer overflow in 'va' function
Basically fixes a buffer overflow in 'va', where the function used the unsafe vsprintf
instead of the safer vsnprintf
. This is a port of KartKrew/Kart-Public!357.
One last thing, in the original merge request, there was a commit regarding chat not saving in console. I couldn't recreate this myself but I added it just in case.