aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-06-02 14:38:56 +0200
committerGitHub <noreply@github.com>2024-06-02 14:38:56 +0200
commit2f15a815b501519ae55a4e174265fa5425a3deab (patch)
tree7270ae62cd3e2bc8d73b192dd25daadfadf08b01
parentfd4ffc81b2593dbf5554b553828a736ac6263e98 (diff)
Build fix
-rw-r--r--src/common/Platform/ServiceWin32.cpp2
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);
}