From 3af906f0a6a5c5e550976da1eb2020ee79a99e4f Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 2 Jun 2024 14:38:56 +0200 Subject: Build fix (cherry picked from commit 2f15a815b501519ae55a4e174265fa5425a3deab) --- src/common/Platform/ServiceWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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); } -- cgit v1.2.3