summaryrefslogtreecommitdiff
path: root/plugins/MimCmd
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MimCmd')
-rw-r--r--plugins/MimCmd/src/commands.cpp2
1 files changed, 1 insertions, 1 deletions
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);