summaryrefslogtreecommitdiff
path: root/plugins/Exchange
diff options
context:
space:
mode:
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)) {