summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-22 15:46:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-22 15:46:39 +0000
commit77eb831a5f759ec4d7554843dcf1bbf5e2f650ea (patch)
tree94252b966fcebebbc8340b3e0140d9ff5fc8c23a /src
parent03afe55ab35727a5c6cb00681fa5998cfbbedef7 (diff)
_vsnprintf_s replaced with _vsnprintf to prevent a crash
git-svn-id: http://svn.miranda-ng.org/main/trunk@11584 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/protos.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/protos.cpp b/src/mir_core/protos.cpp
index 0c2e6c8e5a..7015647bc3 100644
--- a/src/mir_core/protos.cpp
+++ b/src/mir_core/protos.cpp
@@ -48,14 +48,14 @@ void UninitProtocols()
MIR_CORE_DLL(void) ProtoLogA(struct PROTO_INTERFACE *pThis, LPCSTR szFormat, va_list args)
{
char buf[4096];
- int res = _vsnprintf_s(buf, sizeof(buf), szFormat, args);
+ int res = _vsnprintf(buf, sizeof(buf), szFormat, args);
CallService(MS_NETLIB_LOG, (WPARAM)pThis->m_hNetlibUser, (LPARAM)((res != -1) ? buf : CMStringA().FormatV(szFormat, args)));
}
MIR_CORE_DLL(void) ProtoLogW(struct PROTO_INTERFACE *pThis, LPCWSTR wszFormat, va_list args)
{
WCHAR buf[4096];
- int res = _vsnwprintf_s(buf, SIZEOF(buf), wszFormat, args);
+ int res = _vsnwprintf(buf, SIZEOF(buf), wszFormat, args);
CallService(MS_NETLIB_LOGW, (WPARAM)pThis->m_hNetlibUser, (LPARAM)((res != -1) ? buf : CMStringW().FormatV(wszFormat, args)));
}