diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-31 00:13:18 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-31 00:13:18 +0200 |
commit | 8b9fbccf2090f121a492a1c83378ab033c6f0ea2 (patch) | |
tree | 7b004988153f99317deab3701be552ebe550c471 /c/common.h | |
parent | 019fad8bdbda5599e5f19bc50cd8ebac6be899e4 (diff) | |
download | EpisodeBrowser-8b9fbccf2090f121a492a1c83378ab033c6f0ea2.tar.gz |
Use _snwprintf_s instead of swprintf_s for wszf.
Diffstat (limited to 'c/common.h')
-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, |