summaryrefslogtreecommitdiff
path: root/plugins/New_GPG/src
diff options
context:
space:
mode:
authorAlexander Gluzsky <sss123next@list.ru>2013-10-05 22:41:26 +0000
committerAlexander Gluzsky <sss123next@list.ru>2013-10-05 22:41:26 +0000
commit33e5b652631501289c4bbedf7045f3ca73316a8a (patch)
tree5207613b67274ff39a06912b0dd66be2a262e3dd /plugins/New_GPG/src
parentf59b914a721c466e4660e49080fc93ebc1a8fa03 (diff)
fck ....
git-svn-id: http://svn.miranda-ng.org/main/trunk@6365 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG/src')
-rwxr-xr-xplugins/New_GPG/src/utilities.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/New_GPG/src/utilities.cpp b/plugins/New_GPG/src/utilities.cpp
index ce360a06ff..ac9ccd3901 100755
--- a/plugins/New_GPG/src/utilities.cpp
+++ b/plugins/New_GPG/src/utilities.cpp
@@ -495,8 +495,8 @@ std::wstring encrypt_file(HANDLE hContact, TCHAR *filename)
name = filename;
else
name++;
- TCHAR *file_out = new TCHAR [_tcslen(filename)+ _tcslen(_T("%s.gpg")) + 1];
- mir_sntprintf(file_out, _tcslen(file_out), _T("%s.gpg"), name);
+ TCHAR *file_out = new TCHAR [_tcslen(name) + _tcslen(_T("%s.gpg")) + 1];
+ mir_sntprintf(file_out, _tcslen(name) + _tcslen(_T("%s.gpg")) + 1, _T("%s.gpg"), name);
cmd.push_back(szKeyid);
if(db_get_b(hcnt, szGPGModuleName, "bAlwaysTrust", 0))
{