diff options
-rw-r--r-- | lldb/source/Interpreter/Args.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Interpreter/Args.cpp b/lldb/source/Interpreter/Args.cpp index dfd01ee1565..99ddddab5c7 100644 --- a/lldb/source/Interpreter/Args.cpp +++ b/lldb/source/Interpreter/Args.cpp @@ -225,6 +225,7 @@ Args::SetCommandString (const char *command) { case '\0': arg.append (arg_piece_start); + ++arg_end; arg_complete = true; break; @@ -311,6 +312,13 @@ Args::SetCommandString (const char *command) } quote_char = '\0'; } + else + { + // Consume the rest of the string as there was no terminating quote + arg.append(arg_piece_start); + arg_end = arg_piece_start + strlen(arg_piece_start); + arg_complete = true; + } } break; |