diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:24:07 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-16 18:24:07 +0000 |
commit | 6a18d15077999d208154ee13c0fc052f39c43e1f (patch) | |
tree | a85d9553a6673aa45b03d7980f457ef7c5b712ce /plugins/New_GPG/src/options.cpp | |
parent | 1d2bbcacaa044a84d7e32f11198a15e9d2f85b00 (diff) |
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13637 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG/src/options.cpp')
-rwxr-xr-x | plugins/New_GPG/src/options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/New_GPG/src/options.cpp b/plugins/New_GPG/src/options.cpp index 85665d22cb..ee4a83d942 100755 --- a/plugins/New_GPG/src/options.cpp +++ b/plugins/New_GPG/src/options.cpp @@ -905,8 +905,8 @@ static INT_PTR CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam ptmp = UniGetContactSettingUtf(NULL, szGPGModuleName, "szHomePath", _T(""));
_tcsncpy(tmp2, ptmp, MAX_PATH-1);
mir_free(ptmp);
- _tcsncat(tmp2, _T("\\"), MAX_PATH-1);
- _tcsncat(tmp2, _T("temporary_exported.asc"), MAX_PATH-1);
+ _tcsncat(tmp2, _T("\\"), SIZEOF(tmp2) - mir_tstrlen(tmp2));
+ _tcsncat(tmp2, _T("temporary_exported.asc"), SIZEOF(tmp2) - mir_tstrlen(tmp2));
boost::filesystem::remove(tmp2);
wfstream f(tmp2, std::ios::out);
ptmp = UniGetContactSettingUtf(hcnt, szGPGModuleName, "GPGPubKey", _T(""));
|