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;