Explorar o código

vsprintf replacement with engine vairant

resolves first issue in
https://github.com/GarageGames/Torque3D/issues/1515#issuecomment-184446719
Azaezel %!s(int64=9) %!d(string=hai) anos
pai
achega
d25b03cd52
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Engine/source/core/stream/stream.cpp

+ 1 - 1
Engine/source/core/stream/stream.cpp

@@ -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.");