From d4bf2a6fb3c2d057f646d8db423e20fd5892996b Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Wed, 3 Dec 2014 20:34:33 +0000 Subject: correct usage of _tcsncat git-svn-id: http://svn.miranda-ng.org/main/trunk@11232 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StatusPlugins/StartupStatus/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/StatusPlugins/StartupStatus/options.cpp') 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); -- cgit v1.2.3