diff options
Diffstat (limited to 'gui/debugger.cpp')
-rw-r--r-- | gui/debugger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp index ce994a4938..33afc9cd53 100644 --- a/gui/debugger.cpp +++ b/gui/debugger.cpp @@ -290,7 +290,8 @@ bool Debugger::parseCommand(const char *inputOrig) { const char *param[256]; // Parse out any params - char *input = strdup(inputOrig); // One of the rare occasions using strdup is OK (although avoiding strtok might be more elegant here). + // One of the rare occasions using strdup is OK, since splitCommands needs to modify it + char *input = strdup(inputOrig); splitCommand(input, num_params, ¶m[0]); // Handle commands first |