From 3b7a1b0c4af6fec9980a0effcffe54e671ab756d Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 16 May 2015 18:00:54 +0000 Subject: fix for strncat use git-svn-id: http://svn.miranda-ng.org/main/trunk@13631 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Exchange/src/MirandaExchange.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit v1.2.3