aboutsummaryrefslogtreecommitdiff
path: root/src/common/Platform/ServiceWin32.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-06-02 14:38:56 +0200
committerOvahlord <dreadkiller@gmx.de>2024-06-20 01:15:39 +0200
commitf8b21add510b6ea617b361b6eb18ff2a21e03773 (patch)
tree1c747e71c876f5ab25c427240af688bd78f289df /src/common/Platform/ServiceWin32.cpp
parent970ca6093c590d390d6cfd649ce7f8a9febbd5f7 (diff)
Build fix
(cherry picked from commit 2f15a815b501519ae55a4e174265fa5425a3deab)
Diffstat (limited to 'src/common/Platform/ServiceWin32.cpp')
-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);
}