From 0c2d190d67d12e412ff63e206fe861bd5b6f304a Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sun, 16 Jun 2013 11:09:57 -0400 Subject: [PATCH] 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. --- src/apps/debugger/Debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/debugger/Debugger.cpp b/src/apps/debugger/Debugger.cpp index 62e9650b3b..92a8cece93 100644 --- a/src/apps/debugger/Debugger.cpp +++ b/src/apps/debugger/Debugger.cpp @@ -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;