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:
Rene Gollent 2013-06-16 11:09:57 -04:00
parent b4c8efacea
commit 0c2d190d67

View File

@ -613,7 +613,7 @@ Debugger::_StartNewTeam(const char* path, const char* args)
return B_BAD_VALUE;
BString data;
data.SetToFormat("%s %s", path, args);
data.SetToFormat("\"%s\" %s", path, args);
if (data.Length() == 0)
return B_NO_MEMORY;