diff options
Diffstat (limited to 'src/utilcode/log.cpp')
-rw-r--r-- | src/utilcode/log.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utilcode/log.cpp b/src/utilcode/log.cpp index 0dc85527c0..c07ac8baff 100644 --- a/src/utilcode/log.cpp +++ b/src/utilcode/log.cpp @@ -325,7 +325,7 @@ VOID LogSpewAlwaysValist(const char *fmt, va_list args) needsPrefix = (fmt[strlen(fmt)-1] == '\n'); - int cCountWritten = _vsnprintf(&pBuffer[buflen], BUFFERSIZE-buflen, fmt, args ); + int cCountWritten = _vsnprintf_s(&pBuffer[buflen], BUFFERSIZE-buflen, _TRUNCATE, fmt, args ); pBuffer[BUFFERSIZE-1] = 0; if (cCountWritten < 0) { buflen = BUFFERSIZE - 1; |