mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-19 00:51:37 +01: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
@ -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…
x
Reference in New Issue
Block a user