librb: linebuf needs to use the buffer limit from msgbuf_unparse_prefix

This commit is contained in:
Simon Arlott 2017-07-29 23:32:27 +01:00
parent 5ce6360b72
commit 4c7d1de8f3
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24
3 changed files with 7 additions and 4 deletions

View file

@ -223,7 +223,7 @@ linebuf_put_msgvbuf(struct MsgBuf *msgbuf, buf_head_t *linebuf, unsigned int cap
rb_linebuf_newbuf(linebuf);
msgbuf_unparse_prefix(buf, &buflen, msgbuf, capmask);
rb_linebuf_putprefix(linebuf, pattern, va, buf);
rb_linebuf_putprefix(linebuf, pattern, va, buf, buflen);
}
/* linebuf_put_msgbuf