aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-05 19:35:08 -0400
committerPaul Gilbert2017-09-05 19:35:08 -0400
commit54ec7885411bd5720d5d6a37bf96cf73dd924d1d (patch)
tree7defcadfa8ec10783da2ef1bcc19932d3e82b856
parentf9bec828de2d858f10ec6980ce1bc984f0eb43ce (diff)
downloadscummvm-rg350-54ec7885411bd5720d5d6a37bf96cf73dd924d1d.tar.gz
scummvm-rg350-54ec7885411bd5720d5d6a37bf96cf73dd924d1d.tar.bz2
scummvm-rg350-54ec7885411bd5720d5d6a37bf96cf73dd924d1d.zip
GUI: Update comment for strdup call
-rw-r--r--gui/debugger.cpp3
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, &param[0]);
// Handle commands first