aboutsummaryrefslogtreecommitdiff
path: root/archivers/urbackup-client/files/patch-client_ConfigPath.cpp
blob: da84f652039e2aa4ef5bdd3ca1e227edbc124f5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Build fails on FreeBSD due to a casting error from the wxString Class when using
wx30-gtk2-3.0.4_1. This patch adds a cast (static_cast<const wchar_t*>) that
resolves the error.

--- client/ConfigPath.cpp.orig	2022-08-29 17:43:41 UTC
+++ client/ConfigPath.cpp
@@ -208,7 +208,7 @@ void ConfigPath::OnClickNew(wxCommandEvent &evt)
 		listbox->Append(ed.GetPath() );
 		SBackupDir ad;
 		ad.path=ed.GetPath();
-		ad.name=getDefaultDirname(ad.path.wc_str());
+		ad.name=getDefaultDirname(static_cast<const wchar_t*>(ad.path.wc_str()));
 		ad.group=0;
 		ad.id=0;
 		ad.server_default = 0;