librb: linebuf needs to use the buffer limit from msgbuf_unparse_prefix
This commit is contained in:
parent
5ce6360b72
commit
4c7d1de8f3
3 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue