MINOR: buffer: make bo_putchar() use b_tail()

It's possible because we can't call bo_putchar() with i != 0.
This commit is contained in:
Willy Tarreau 2018-07-09 10:31:30 +02:00
parent 0c7ed5d264
commit 271e2a503d

View File

@ -205,7 +205,7 @@ static inline void bo_putchr(struct buffer *b, char c)
{
if (b_data(b) == b->size)
return;
*b->p = c;
*b_tail(b) = c;
b->p = b_peek(b, b->o + 1);
b->o++;
}