https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3892252bc548a76f3c4ac…
commit 3892252bc548a76f3c4ac66aed04b3927a9e0c99
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Wed Aug 24 10:23:51 2022 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Wed Aug 24 10:23:51 2022 +0900
[KBSWITCH] Use StringCchCopy instead of lstrcpyn
---
base/applications/kbswitch/kbswitch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/applications/kbswitch/kbswitch.c
b/base/applications/kbswitch/kbswitch.c
index cc9338c7ed0..09f4829eb19 100644
--- a/base/applications/kbswitch/kbswitch.c
+++ b/base/applications/kbswitch/kbswitch.c
@@ -59,7 +59,7 @@ CreateTrayIcon(LPTSTR szLCID)
ZeroMemory(&lf, sizeof(lf));
lf.lfHeight = -11;
lf.lfCharSet = ANSI_CHARSET;
- lstrcpyn(lf.lfFaceName, _T("Tahoma"), ARRAYSIZE(lf.lfFaceName));
+ StringCchCopy(lf.lfFaceName, ARRAYSIZE(lf.lfFaceName), _T("Tahoma"));
hFont = CreateFontIndirect(&lf);
SetRect(&rect, 0, 0, CX_ICON, CY_ICON);