From dc5a7f4928e7feb66aeced076bd457bb69a449d7 Mon Sep 17 00:00:00 2001 From: computezrmle <57127745+computezrmle@users.noreply.github.com> Date: Thu, 4 Aug 2022 21:39:45 +0200 Subject: [PATCH] Remove previous change --- clientgui/MainDocument.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp index c89ab79b23..629f54bd05 100644 --- a/clientgui/MainDocument.cpp +++ b/clientgui/MainDocument.cpp @@ -1712,10 +1712,10 @@ void CMainDocument::KillGraphicsApp(int pid) { if (g_use_sandbox) { snprintf(thePIDbuf, sizeof(thePIDbuf), "%d", pid); - argv[0] = (char *)"switcher"; - argv[1] = (char *)"/bin/kill"; - argv[2] = (char *)"kill"; - argv[3] = (char *)"-KILL"; + argv[0] = "switcher"; + argv[1] = "/bin/kill"; + argv[2] = "kill"; + argv[3] = "-KILL"; argv[4] = thePIDbuf; argv[5] = 0; @@ -1767,7 +1767,7 @@ int CMainDocument::WorkShowGraphics(RESULT* rp) { #ifndef __WXMSW__ char* argv[4]; - argv[0] = (char *)"switcher"; + argv[0] = "switcher"; // For unknown reasons on Macs, the graphics application // exits with "RegisterProcess failed (error = -50)" unless // we pass its full path twice in the argument list to execv.