From 0d4768528dee7217f8a66065d824d044c1a877ed Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 20 Aug 2014 23:35:11 +0200 Subject: [PATCH] Fix a potential crash in ExternalCommandListener::CommandPipeThread refs #6589 --- components/compat/externalcommandlistener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/compat/externalcommandlistener.cpp b/components/compat/externalcommandlistener.cpp index f93610955..55d744818 100644 --- a/components/compat/externalcommandlistener.cpp +++ b/components/compat/externalcommandlistener.cpp @@ -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;