diff options
Diffstat (limited to 'src/modules/clist')
-rw-r--r-- | src/modules/clist/clistmod.cpp | 2 | ||||
-rw-r--r-- | src/modules/clist/contact.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/clist/clistmod.cpp b/src/modules/clist/clistmod.cpp index 22e7fbb493..74d4a38aa8 100644 --- a/src/modules/clist/clistmod.cpp +++ b/src/modules/clist/clistmod.cpp @@ -462,7 +462,7 @@ static INT_PTR CompareContacts(WPARAM wParam, LPARAM lParam) }
nameb = cli.pfnGetContactDisplayName(a, 0);
- _tcsncpy(namea, nameb, SIZEOF(namea));
+ _tcsncpy_s(namea, nameb, _TRUNCATE);
namea[ SIZEOF(namea)-1 ] = 0;
nameb = cli.pfnGetContactDisplayName(b, 0);
diff --git a/src/modules/clist/contact.cpp b/src/modules/clist/contact.cpp index a93e9ca117..64c2727c86 100644 --- a/src/modules/clist/contact.cpp +++ b/src/modules/clist/contact.cpp @@ -125,7 +125,7 @@ int fnCompareContacts(const ClcContact* c1, const ClcContact* c2) } nameb = cli.pfnGetContactDisplayName(a, 0); - _tcsncpy(namea, nameb, SIZEOF(namea)); + _tcsncpy_s(namea, nameb, _TRUNCATE); namea[ SIZEOF(namea)-1 ] = 0; nameb = cli.pfnGetContactDisplayName(b, 0); |