From 15ec0ca34f58fde27fb8dd70f984818e0ddb38e5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 22 Feb 2019 13:05:16 +0300 Subject: code cleaning --- src/mir_core/src/memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mir_core') diff --git a/src/mir_core/src/memory.cpp b/src/mir_core/src/memory.cpp index 6c5456f30c..b7024af2b6 100644 --- a/src/mir_core/src/memory.cpp +++ b/src/mir_core/src/memory.cpp @@ -212,7 +212,7 @@ MIR_CORE_DLL(int) mir_snwprintf(wchar_t *buffer, size_t count, const wchar_t* fm { va_list va; va_start(va, fmt); - int len = _vsntprintf(buffer, count-1, fmt, va); + int len = _vsnwprintf(buffer, count-1, fmt, va); va_end(va); buffer[count-1] = 0; return len; @@ -231,7 +231,7 @@ MIR_CORE_DLL(int) mir_vsnprintf(char *buffer, size_t count, const char* fmt, va_ MIR_CORE_DLL(int) mir_vsnwprintf(wchar_t *buffer, size_t count, const wchar_t* fmt, va_list va) { - int len = _vsntprintf(buffer, count-1, fmt, va); + int len = _vsnwprintf(buffer, count-1, fmt, va); buffer[count-1] = 0; return len; } -- cgit v1.2.3