summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2014-12-03 20:34:33 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2014-12-03 20:34:33 +0000
commitd4bf2a6fb3c2d057f646d8db423e20fd5892996b (patch)
tree99afd97c3eae6f2d337ed6432e75b68e691d511f /plugins/StatusPlugins
parent251fccda07197b12c630801269beb4ba3f099e13 (diff)
correct usage of _tcsncat
git-svn-id: http://svn.miranda-ng.org/main/trunk@11232 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins')
-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 708ff717fb..ca68b447cd 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(savePath, SHORTCUT_FILENAME, SIZEOF(savePath));
+ _tcsncat_s(savePath, SHORTCUT_FILENAME, _TRUNCATE);
else
mir_sntprintf(savePath, SIZEOF(savePath), _T(".\\%s"), SHORTCUT_FILENAME);