From: Willy Tarreau Date: Mon, 9 Jul 2018 08:31:30 +0000 (+0200) Subject: MINOR: buffer: make bo_putchar() use b_tail() X-Git-Tag: v1.9-dev1~118 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=271e2a503d2c91b1a451455f585c19a27c5d5331;p=thirdparty%2Fhaproxy.git MINOR: buffer: make bo_putchar() use b_tail() It's possible because we can't call bo_putchar() with i != 0. --- diff --git a/include/common/buffer.h b/include/common/buffer.h index a05d58d7ad..976ea02629 100644 --- a/include/common/buffer.h +++ b/include/common/buffer.h @@ -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++; }