summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_rowtemplateopt.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 17:38:34 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 17:38:34 +0000
commitf869380300b7f278000ac65ee0f8869fe9f8d520 (patch)
tree9eb9672df8a0aed0746d1ce37739950e17d15972 /plugins/Clist_modern/src/modern_rowtemplateopt.cpp
parentb97306f8dc5e4f93bd3e6e5500a8b8338d6249a2 (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13626 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_rowtemplateopt.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_rowtemplateopt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Clist_modern/src/modern_rowtemplateopt.cpp b/plugins/Clist_modern/src/modern_rowtemplateopt.cpp
index fd468c8d70..1ee8cad17d 100644
--- a/plugins/Clist_modern/src/modern_rowtemplateopt.cpp
+++ b/plugins/Clist_modern/src/modern_rowtemplateopt.cpp
@@ -326,7 +326,7 @@ void RefreshTree(HWND hwndDlg, HTREEITEM hti)
else
mir_sntprintf(buf, SIZEOF(buf), TranslateT("%s, contain %s"), TranslateTS(types[cell->type]), cell->cont != TC_COL ? TranslateT("columns") : TranslateT("lines"));
}
- if (cell->layer) mir_tstrncat(buf, TranslateT(" layered"), _TRUNCATE);
+ if (cell->layer) mir_tstrncat(buf, TranslateT(" layered"), SIZEOF(buf) - mir_tstrlen(buf));
tvi.mask = TVIF_HANDLE | TVIF_TEXT;
tvi.pszText = buf;
TreeView_SetItem(htree, &tvi);