From 7e315d1103af9248583483da99e96ca339bf2d20 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 11 Apr 2015 15:20:17 +0000 Subject: unsafe string operations replaced with safe wherever possible git-svn-id: http://svn.miranda-ng.org/main/trunk@12768 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/plugins/newplugins.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/plugins/newplugins.cpp') diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index 511ab1fdd4..ff12e0d907 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -392,7 +392,7 @@ void enumPlugins(SCAN_PLUGINS_CALLBACK cb, WPARAM wParam, LPARAM lParam) pluginEntry* OpenPlugin(TCHAR *tszFileName, TCHAR *dir, TCHAR *path) { pluginEntry *p = (pluginEntry*)HeapAlloc(hPluginListHeap, HEAP_NO_SERIALIZE | HEAP_ZERO_MEMORY, sizeof(pluginEntry)); - _tcsncpy(p->pluginname, tszFileName, SIZEOF(p->pluginname)); + _tcsncpy_s(p->pluginname, tszFileName, _TRUNCATE); // add it to the list anyway pluginList.insert(p); -- cgit v1.2.3