mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-16 08:38:10 +03:00
parent
262f443404
commit
bf58a0206d
@ -422,7 +422,11 @@ public:
|
|||||||
va_list arg_ptr;
|
va_list arg_ptr;
|
||||||
|
|
||||||
va_start(arg_ptr, pszFormat);
|
va_start(arg_ptr, pszFormat);
|
||||||
|
#if defined(_WIN32) && !defined(_CRT_SECURE_NO_WARNINGS)
|
||||||
|
_vsnprintf_s(m_szBuf, sizeof(m_szBuf) - 1, sizeof(m_szBuf) - 1, pszFormat, arg_ptr);
|
||||||
|
#else
|
||||||
_vsnprintf(m_szBuf, sizeof(m_szBuf) - 1, pszFormat, arg_ptr);
|
_vsnprintf(m_szBuf, sizeof(m_szBuf) - 1, pszFormat, arg_ptr);
|
||||||
|
#endif
|
||||||
va_end(arg_ptr);
|
va_end(arg_ptr);
|
||||||
|
|
||||||
m_szBuf[sizeof(m_szBuf) - 1] = 0;
|
m_szBuf[sizeof(m_szBuf) - 1] = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user