librb: rb_linebuf_copy_raw: remove unused assignment

This commit is contained in:
Simon Arlott 2017-07-29 19:27:19 +01:00 committed by Aaron Jones
parent ed78e97a96
commit 8fc0cea653
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -301,7 +301,6 @@ rb_linebuf_copy_raw(buf_head_t * bufhead, buf_line_t * bufline, char *data, int
clen = BUF_DATA_SIZE - bufline->len - 1;
memcpy(bufch, ch, clen);
bufline->buf[BUF_DATA_SIZE - 1] = '\0';
bufch = bufline->buf + BUF_DATA_SIZE - 2;
bufline->terminated = 1;
bufline->len = BUF_DATA_SIZE - 1;
bufhead->len += BUF_DATA_SIZE - 1;