From 07bff43c1ee8ffb1e19dc2ed6419f602c0053f56 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 12 Aug 2010 21:19:08 +0300 Subject: modified: gpg_wrapper.cpp modified: gpg_wrapper.h modified: main.cpp modified: messages.cpp modified: options.cpp --- main.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 702a9b2..22c1fd7 100644 --- a/main.cpp +++ b/main.cpp @@ -87,9 +87,8 @@ static BOOL CALLBACK DlgProcFirstRun(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM DWORD code; string::size_type p = 0, p2 = 0, stop = 0; { - TCHAR cmd[512]; - _tcscpy(cmd, _T("--list-secret-keys")); - pxExecute(cmd, "", &out, &code); + wstring cmd = _T("--list-secret-keys"); + pxExecute(&cmd, "", &out, &code); } cp866_to_cp1251(&out); while(p != string::npos) @@ -151,10 +150,9 @@ static BOOL CALLBACK DlgProcFirstRun(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM { string out; DWORD code; - TCHAR cmd[64]; - _tcscpy(cmd, _T("--export -a ")); - _tcscat(cmd, fp); - pxExecute(cmd, "", &out, &code); + wstring cmd = _T("--export -a "); + cmd += fp; + pxExecute(&cmd, "", &out, &code); DBWriteContactSettingString(NULL, szModuleName, "GPGPubKey", out.c_str()); } DestroyWindow(hwndDlg); -- cgit v1.2.3