diff options
Diffstat (limited to 'c')
-rw-r--r-- | c/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,9 +58,9 @@ T* Library::GetProcAddress(const char* const szProc) } template<size_t N, typename... T> -inline auto wszf(wchar_t (&wsz)[N], const wchar_t* wszFmt, T... xs) +inline int wszf(wchar_t (&wsz)[N], const wchar_t* const wszFmt, T... xs) { - return swprintf_s(wsz, N, wszFmt, xs...); + return _snwprintf_s(wsz, N, _TRUNCATE, wszFmt, xs...); } /* Create and return an object of type C. If construction fails, |