From 54ec7885411bd5720d5d6a37bf96cf73dd924d1d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 5 Sep 2017 19:35:08 -0400 Subject: GUI: Update comment for strdup call --- gui/debugger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gui') 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 -- cgit v1.2.3