On Tue, Sep 13, 2016 at 7:42 AM, René Scharfe <l.s.r@xxxxxx> wrote: >> >> strbuf_add(&msgbuf, line + len, org_len - len); >> + if (line[org_len - 1] != '\n') >> + strbuf_addch(&msgbuf, '\n'); >> + > > > Using strbuf_complete_line() would be nicer. That makes sense! Thanks, Stefan