Fix incorrect handling when starting new teams.
When building the launch string for starting a new team via the GUI, enclose the executable path in quotes to ensure paths with spaces are handled properly.
This commit is contained in:
@@ -613,7 +613,7 @@ Debugger::_StartNewTeam(const char* path, const char* args)
|
|||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
BString data;
|
BString data;
|
||||||
data.SetToFormat("%s %s", path, args);
|
data.SetToFormat("\"%s\" %s", path, args);
|
||||||
if (data.Length() == 0)
|
if (data.Length() == 0)
|
||||||
return B_NO_MEMORY;
|
return B_NO_MEMORY;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user