summaryrefslogtreecommitdiff
path: root/plugins/FavContacts/src/contact_cache.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2018-03-15 22:35:31 +0300
committerMataes <mataes2007@gmail.com>2018-03-15 22:35:31 +0300
commitecbca42677af470d672e66d3f6950af208f8f212 (patch)
tree22937f50f1914b2c2b45582d67707b403cad605f /plugins/FavContacts/src/contact_cache.cpp
parent69cbd0fd851cde4973344d9a80c6965a571fbe69 (diff)
FavContacts: use strncpy_s and wcsncpy_s instead of mir_wstrcpy and mir_strcpy
Diffstat (limited to 'plugins/FavContacts/src/contact_cache.cpp')
-rw-r--r--plugins/FavContacts/src/contact_cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/FavContacts/src/contact_cache.cpp b/plugins/FavContacts/src/contact_cache.cpp
index 6cf3b37761..01af17ff40 100644
--- a/plugins/FavContacts/src/contact_cache.cpp
+++ b/plugins/FavContacts/src/contact_cache.cpp
@@ -177,7 +177,7 @@ bool CContactCache::filter(int rate, wchar_t *str)
for (int iLayout = 0; iLayout < nKbdLayouts; ++iLayout) {
if (kbdLayoutActive == kbdLayouts[iLayout])
- mir_wstrcpy(buf, str);
+ wcsncpy_s(buf, str, _TRUNCATE);
else {
int i;
for (i = 0; str[i]; ++i) {