summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:45:35 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:45:35 +0000
commita5e72bd4459091b5712a6b10621233dba4e6e5af (patch)
treea945735322216007628f0dd4cd14c6aab870ddaa /plugins
parent21c7ceae52c256d77b6f3b2bc4af2bca6ad7c23d (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13647 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/StatusPlugins/StartupStatus/options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/options.cpp b/plugins/StatusPlugins/StartupStatus/options.cpp
index ff3281f171..159bb8182c 100644
--- a/plugins/StatusPlugins/StartupStatus/options.cpp
+++ b/plugins/StatusPlugins/StartupStatus/options.cpp
@@ -161,7 +161,7 @@ HRESULT CreateLink(TSettingsList& protoSettings)
{
TCHAR savePath[MAX_PATH];
if (SHGetSpecialFolderPath(NULL, savePath, 0x10, FALSE))
- _tcsncat_s(savePath, SHORTCUT_FILENAME, _TRUNCATE);
+ _tcsncat_s(savePath, SHORTCUT_FILENAME, SIZEOF(savePath) - mir_tstrlen(savePath));
else
mir_sntprintf(savePath, SIZEOF(savePath), _T(".\\%s"), SHORTCUT_FILENAME);