From: Gunnar Beutner Date: Thu, 21 Aug 2014 07:36:00 +0000 (+0200) Subject: Revert "Fix a potential crash in ExternalCommandListener::CommandPipeThread" X-Git-Tag: v2.1.0~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=071ac754cae9ac4b92659811fe4f15cef0c953fb;p=icinga2 Revert "Fix a potential crash in ExternalCommandListener::CommandPipeThread" This reverts commit 0d4768528dee7217f8a66065d824d044c1a877ed. --- diff --git a/components/compat/externalcommandlistener.cpp b/components/compat/externalcommandlistener.cpp index 55d744818..f93610955 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, String(line))); + Utility::QueueAsyncCallback(boost::bind(&ExternalCommandListener::ExecuteCommand, line)); } delete line;