mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
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:
parent
0c7ed5d264
commit
271e2a503d
1 changed files with 1 additions and 1 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue