]> granicus.if.org Git - icinga2/commitdiff
Fix crash in 'icinga2 console'
authorGunnar Beutner <gunnar@beutner.name>
Tue, 24 Feb 2015 11:52:10 +0000 (12:52 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 24 Feb 2015 11:52:10 +0000 (12:52 +0100)
fixes #8516

lib/cli/consolecommand.cpp

index a3377c4f2db683e491430ede000f792550b35a6e..c78708b81adb22acb72807559dfdb83c06e4b4b5 100644 (file)
@@ -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);
                        }