summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-18 20:28:29 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-18 20:28:29 +0000
commit83341d2f5f8b20549d1be6da322cb0cc2f72b5a1 (patch)
treed0061e2481190b613789fed20e4e7666fa837d74 /plugins/Clist_modern/src
parenta6c5851e94a5a604fcbe9e6adfa130a3c8066364 (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13686 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src')
-rw-r--r--plugins/Clist_modern/src/modern_viewmodebar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_viewmodebar.cpp b/plugins/Clist_modern/src/modern_viewmodebar.cpp
index da921d125b..08a2a800c6 100644
--- a/plugins/Clist_modern/src/modern_viewmodebar.cpp
+++ b/plugins/Clist_modern/src/modern_viewmodebar.cpp
@@ -412,8 +412,8 @@ void SaveState()
item.cchTextMax = SIZEOF(szTemp);
item.iItem = i;
SendMessage(hwndList, LVM_GETITEM, 0, (LPARAM)&item);
- mir_tstrncat(newGroupFilter, szTemp, _TRUNCATE);
- mir_tstrncat(newGroupFilter, _T("|"), _TRUNCATE);
+ mir_tstrncat(newGroupFilter, szTemp, SIZEOF(newGroupFilter) - mir_tstrlen(newGroupFilter));
+ mir_tstrncat(newGroupFilter, _T("|"), SIZEOF(newGroupFilter) - mir_tstrlen(newGroupFilter));
newGroupFilter[2047] = 0;
}
}