[icinga-checkins] icinga.org: icinga2/fix/process-spawn-buf-13655: This takes two char*, not a pointer and a length

git at icinga.org git at icinga.org
Wed Jan 11 17:47:35 CET 2017


Module: icinga2
Branch: fix/process-spawn-buf-13655
Commit: 41a033a520c855a80973b0abc87b72502b8c675b
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=41a033a520c855a80973b0abc87b72502b8c675b

Author: Lucas Fairchild-Madar <lucas.madar at gmail.com>
Date:   Fri Jan  6 13:27:17 2017 -0800

This takes two char*, not a pointer and a length

Signed-off-by: Michael Friedrich <michael.friedrich at icinga.com>

---

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

diff --git a/lib/base/process.cpp b/lib/base/process.cpp
index de4ebd9..e93a302 100644
--- a/lib/base/process.cpp
+++ b/lib/base/process.cpp
@@ -304,7 +304,7 @@ static void ProcessHandler(void)
 				break;
 		}
 
-		String jrequest = String(mbuf, length);
+		String jrequest = String(mbuf, mbuf + count);
 
 		delete [] mbuf;
 



More information about the icinga-checkins mailing list