From cec8996acb962a45d7c0549cd6da73a4625cc070 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Mon, 21 Sep 2015 08:36:52 +0000 Subject: MimCmd; previous commit fix git-svn-id: http://svn.miranda-ng.org/main/trunk@15416 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MimCmd/src/commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/MimCmd') diff --git a/plugins/MimCmd/src/commands.cpp b/plugins/MimCmd/src/commands.cpp index 11874d19d7..2d1e1914c3 100644 --- a/plugins/MimCmd/src/commands.cpp +++ b/plugins/MimCmd/src/commands.cpp @@ -40,7 +40,7 @@ int ConnectToMiranda() TCHAR *p = _tcsrchr(tszPath, '\\'); if (p) p[1] = 0; - _tcsncat_s(tszPath, _T("libs"), _countof(tszPath) - mir_tstrlen(tszPath)); + _tcsncat_s(tszPath, _T("libs"), _TRUNCATE); DWORD cbPath = (DWORD)_tcslen(tszPath); DWORD cbSize = GetEnvironmentVariable(_T("PATH"), NULL, 0); -- cgit v1.2.3