diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-06-02 14:38:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-02 14:38:56 +0200 |
commit | 2f15a815b501519ae55a4e174265fa5425a3deab (patch) | |
tree | 7270ae62cd3e2bc8d73b192dd25daadfadf08b01 /src/common/Platform | |
parent | fd4ffc81b2593dbf5554b553828a736ac6263e98 (diff) |
Build fix
Diffstat (limited to 'src/common/Platform')
-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 72964701a0c..19e572081fc 100644 --- a/src/common/Platform/ServiceWin32.cpp +++ b/src/common/Platform/ServiceWin32.cpp @@ -187,7 +187,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); } |