From bc2e98d50f275471345c749e4d951a309a7f14a7 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 6 Jan 2014 23:32:31 +0100 Subject: [PATCH] sysdb: Append newlines to lines read from readline(). Else, whitespace will be missing in multi-line commands. --- src/tools/sysdb/input.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tools/sysdb/input.c b/src/tools/sysdb/input.c index 0513ee0..72e360c 100644 --- a/src/tools/sysdb/input.c +++ b/src/tools/sysdb/input.c @@ -75,9 +75,10 @@ input_readline(sdb_strbuf_t *buf) if (! line) return 0; - len = strlen(line); + len = strlen(line) + 1; sdb_strbuf_append(buf, line); + sdb_strbuf_append(buf, "\n"); free(line); return len; } /* input_readline */ -- 2.30.2