summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 834d6c7..83e10ab 100644
--- a/main.cpp
+++ b/main.cpp
@@ -244,6 +244,8 @@ static BOOL CALLBACK DlgProcGpgBinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP
GetDlgItemText(hwndDlg, IDC_BIN_PATH, tmp, 512);
DBWriteContactSettingTString(NULL, szModuleName, "szGpgBinPath", tmp);
GetDlgItemText(hwndDlg, IDC_HOME_DIR, tmp, 512);
+ while(tmp[_tcslen(tmp)-1] == '\\')
+ tmp[_tcslen(tmp)-1] = '\0';
DBWriteContactSettingTString(NULL, szModuleName, "szHomePath", tmp);
DestroyWindow(hwndDlg);
ShowFirstRunDialog();