diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:45:35 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:45:35 +0000 |
commit | a5e72bd4459091b5712a6b10621233dba4e6e5af (patch) | |
tree | a945735322216007628f0dd4cd14c6aab870ddaa | |
parent | 21c7ceae52c256d77b6f3b2bc4af2bca6ad7c23d (diff) |
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13647 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/StatusPlugins/StartupStatus/options.cpp | 2 |
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);
|