summaryrefslogtreecommitdiff
path: root/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'options.cpp')
-rw-r--r--options.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/options.cpp b/options.cpp
index 0039b39..3c0c201 100644
--- a/options.cpp
+++ b/options.cpp
@@ -299,6 +299,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);
return TRUE;
}