[haiku-commits] haiku: hrev45769 - src/apps/debugger

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 16 Jun 2013 17:11:57 +0200 (CEST)

hrev45769 adds 1 changeset to branch 'master'
old head: b4c8efacea6265d17537b6b5fe007c21ea9d9dd1
new head: 0c2d190d67d12e412ff63e206fe861bd5b6f304a
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=0c2d190+%5Eb4c8efa

----------------------------------------------------------------------------

0c2d190: 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.

                                      [ Rene Gollent <anevilyak@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45769
Commit:      0c2d190d67d12e412ff63e206fe861bd5b6f304a
URL:         http://cgit.haiku-os.org/haiku/commit/?id=0c2d190
Author:      Rene Gollent <anevilyak@xxxxxxxxx>
Date:        Sun Jun 16 15:09:57 2013 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/apps/debugger/Debugger.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/apps/debugger/Debugger.cpp b/src/apps/debugger/Debugger.cpp
index 62e9650..92a8cec 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;
 


Other related posts:

  • » [haiku-commits] haiku: hrev45769 - src/apps/debugger - anevilyak