diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-09-18 05:43:41 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-09-18 05:43:41 +0000 |
commit | 714a4367ebb95273d9ccbf32da349962a19c75fd (patch) | |
tree | 4180ad417200a154c52b329435ddfd0b48fb1ccd /plugins/MimCmd | |
parent | 33f3c15f4b743d1fb84ce61b7a9877277594008b (diff) |
MimCmd: memory overrun fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15376 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MimCmd')
-rw-r--r-- | plugins/MimCmd/src/commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MimCmd/src/commands.cpp b/plugins/MimCmd/src/commands.cpp index 03c37c55a2..11874d19d7 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(tszPath, _T("libs"), _TRUNCATE);
+ _tcsncat_s(tszPath, _T("libs"), _countof(tszPath) - mir_tstrlen(tszPath));
DWORD cbPath = (DWORD)_tcslen(tszPath);
DWORD cbSize = GetEnvironmentVariable(_T("PATH"), NULL, 0);
|