diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 17:50:11 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 17:50:11 +0000 |
commit | 958e8345292ae34336abf0722c82ede2692e9bf4 (patch) | |
tree | 693e83d94d27f1be5c295be7c6a131fde6963b67 /plugins/Clist_nicer/src/extBackg.cpp | |
parent | af6cd836a72997b86612dc38adfebf417e171a93 (diff) |
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13628 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_nicer/src/extBackg.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/extBackg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Clist_nicer/src/extBackg.cpp b/plugins/Clist_nicer/src/extBackg.cpp index 400376d435..0703e5dd8d 100644 --- a/plugins/Clist_nicer/src/extBackg.cpp +++ b/plugins/Clist_nicer/src/extBackg.cpp @@ -290,7 +290,7 @@ void LoadExtBkSettingsFromDB() mir_snprintf(p->szDBname, SIZEOF(p->szDBname), "EXBK_%s", accs[i]->szModuleName);
if (i == 0) {
mir_strncpy(p->szName, "{-}", SIZEOF(p->szName));
- strncat(p->szName, accs[i]->szModuleName, SIZEOF(p->szName));
+ strncat(p->szName, accs[i]->szModuleName, SIZEOF(p->szName) - mir_strlen(p->szName));
}
else mir_strncpy(p->szName, accs[i]->szModuleName, SIZEOF(p->szName));
p->statusID = ID_EXTBK_LAST;
|