[icinga-checkins] icinga.org: icinga2/master: Fix crash in 'icinga2 console'

git at icinga.org git at icinga.org
Tue Feb 24 12:53:42 CET 2015


Module: icinga2
Branch: master
Commit: 9cd681148dbb40624a3700a33c0b83b9fe648057
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=9cd681148dbb40624a3700a33c0b83b9fe648057

Author: Gunnar Beutner <gunnar at beutner.name>
Date:   Tue Feb 24 12:52:10 2015 +0100

Fix crash in 'icinga2 console'

fixes #8516

---

 lib/cli/consolecommand.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cli/consolecommand.cpp b/lib/cli/consolecommand.cpp
index a3377c4..c78708b 100644
--- a/lib/cli/consolecommand.cpp
+++ b/lib/cli/consolecommand.cpp
@@ -196,7 +196,7 @@ incomplete:
 			char buf[1024];
 
 			while (!ns->IsEof()) {
-				size_t rc = ns->Read(buf, sizeof(buf));
+				size_t rc = ns->Read(buf, sizeof(buf), true);
 				result += String(buf, buf + rc);
 			}
 



More information about the icinga-checkins mailing list