summaryrefslogtreecommitdiff
path: root/plugins/Exchange
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:00:54 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 18:00:54 +0000
commit3b7a1b0c4af6fec9980a0effcffe54e671ab756d (patch)
tree4ea1497742c432acf5db99b02902805933690e8f /plugins/Exchange
parentb6aaf5fb96db808ae73415c54588e987f66bc242 (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13631 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Exchange')
-rw-r--r--plugins/Exchange/src/MirandaExchange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Exchange/src/MirandaExchange.cpp b/plugins/Exchange/src/MirandaExchange.cpp
index 61fe4a0a8b..6061633626 100644
--- a/plugins/Exchange/src/MirandaExchange.cpp
+++ b/plugins/Exchange/src/MirandaExchange.cpp
@@ -440,7 +440,7 @@ HRESULT CMirandaExchange::InitializeAndLogin( LPCTSTR szUsername, LPCTSTR szPass
_tstrtime(szPID);
_tcsncpy(szPIDandName, m_szUsername, SIZEOF(szPIDandName)-1);
- _tcsncat(szPIDandName, szPID, SIZEOF(szPIDandName)-1);
+ _tcsncat(szPIDandName, szPID, SIZEOF(szPIDandName) - mir_tstrlen(szPIDandName));
hr = CreateProfile(szPIDandName);
if ( HR_FAILED(hr)) {