mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #1516 from Azaezel/vsprintf_Variant
vsprintf replacement with engine vairant
This commit is contained in:
commit
09ae25a567
|
|
@ -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.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue