diff --git a/src/common/Platform/ServiceWin32.cpp b/src/common/Platform/ServiceWin32.cpp index 72964701a0c..19e572081fc 100644 --- a/src/common/Platform/ServiceWin32.cpp +++ b/src/common/Platform/ServiceWin32.cpp @@ -187,7 +187,7 @@ template void TCharToChar(TCHAR const* src, char(&dst)[size]) { if constexpr (std::is_same_v) - ::strcpy_s(dst, src, size); + ::strcpy_s(dst, src); else ::wcstombs_s(nullptr, dst, src, _TRUNCATE); }