mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 23:53:51 +00:00
vsprintf replacement with engine vairant
resolves first issue in https://github.com/GarageGames/Torque3D/issues/1515#issuecomment-184446719
This commit is contained in:
parent
94653fdbac
commit
d25b03cd52
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue