diff --git a/clientgui/AdvancedFrame.cpp b/clientgui/AdvancedFrame.cpp index 932440b50b..938c0ea6b3 100644 --- a/clientgui/AdvancedFrame.cpp +++ b/clientgui/AdvancedFrame.cpp @@ -1491,14 +1491,14 @@ void CAdvancedFrame::OnLaunchNewInstance(wxCommandEvent& WXUNUSED(event)) { int prog; #endif int argc = 3; - char* argv[3]; + char* const argv[3] = { + const_cast("boincmgr"), + const_cast("--multiple"), + const_cast("") + }; wxString strExecutable = wxGetApp().GetRootDirectory() + wxGetApp().GetExecutableName(); - argv[0] = "boincmgr"; - argv[1] = "--multiple"; - argv[2] = ""; - run_program( wxGetApp().GetRootDirectory().mb_str(), strExecutable.mb_str(),