Skip to content

Commit

Permalink
Fix a potential crash in ExternalCommandListener::CommandPipeThread
Browse files Browse the repository at this point in the history
refs #6589
  • Loading branch information
gunnarbeutner committed Aug 20, 2014
1 parent 107a152 commit 0d47685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/compat/externalcommandlistener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void ExternalCommandListener::CommandPipeThread(const String& commandPath)
(line[strlen(line) - 1] == '\r' || line[strlen(line) - 1] == '\n'))
line[strlen(line) - 1] = '\0';

Utility::QueueAsyncCallback(boost::bind(&ExternalCommandListener::ExecuteCommand, line));
Utility::QueueAsyncCallback(boost::bind(&ExternalCommandListener::ExecuteCommand, String(line)));
}

delete line;
Expand Down

0 comments on commit 0d47685

Please sign in to comment.