diff options
-rw-r--r-- | src/common/Platform/ServiceWin32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/Platform/ServiceWin32.cpp b/src/common/Platform/ServiceWin32.cpp index 8cb213e501a..970bd5fbeeb 100644 --- a/src/common/Platform/ServiceWin32.cpp +++ b/src/common/Platform/ServiceWin32.cpp @@ -188,7 +188,7 @@ template<size_t size> void TCharToChar(TCHAR const* src, char(&dst)[size]) { if constexpr (std::is_same_v<TCHAR, char>) - ::strcpy_s(dst, src, size); + ::strcpy_s(dst, src); else ::wcstombs_s(nullptr, dst, src, _TRUNCATE); } |