diff options
Diffstat (limited to 'src/modules/clist/contact.cpp')
-rw-r--r-- | src/modules/clist/contact.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |