From e9bcf12b9ec6406a5bcc19bfc7a6569846ae7d3b Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Tue, 28 Oct 2014 21:25:40 +0200 Subject: [PATCH] process: run: Fix bug with multi-line prints Once newlines are replaces with NULLs for printing, we must start the next line after the NULL. Without this all extra printout lines are zero in length. Signed-off-by: Timo Kokkonen --- process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process.c b/process.c index 3b10700..7de41b9 100644 --- a/process.c +++ b/process.c @@ -658,7 +658,7 @@ print: else pr_info("%s: stdout: %s\n", cmd, sptr); - sptr = eptr; + sptr = eptr + 1; } eptr++; } -- 2.45.0