vsprintf replacement with engine vairant

resolves first issue in
https://github.com/GarageGames/Torque3D/issues/1515#issuecomment-184446719
This commit is contained in:
Azaezel 2016-02-15 18:12:56 -06:00
parent 94653fdbac
commit d25b03cd52

View file

@ -128,7 +128,7 @@ bool Stream::writeFormattedBuffer(const char *format, ...)
char buffer[4096];
va_list args;
va_start(args, format);
const S32 length = vsprintf(buffer, format, args);
const S32 length = dVsprintf(buffer, sizeof(buffer), format, args);
// Sanity!
AssertFatal(length <= sizeof(buffer), "writeFormattedBuffer - String format exceeded buffer size. This will cause corruption.");