diff options
author | Paul Gilbert | 2017-09-05 19:35:08 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-05 19:35:08 -0400 |
commit | 54ec7885411bd5720d5d6a37bf96cf73dd924d1d (patch) | |
tree | 7defcadfa8ec10783da2ef1bcc19932d3e82b856 | |
parent | f9bec828de2d858f10ec6980ce1bc984f0eb43ce (diff) | |
download | scummvm-rg350-54ec7885411bd5720d5d6a37bf96cf73dd924d1d.tar.gz scummvm-rg350-54ec7885411bd5720d5d6a37bf96cf73dd924d1d.tar.bz2 scummvm-rg350-54ec7885411bd5720d5d6a37bf96cf73dd924d1d.zip |
GUI: Update comment for strdup call
-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 |