commit | 271e2a503d2c91b1a451455f585c19a27c5d5331 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Jul 09 10:31:30 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Jul 19 16:23:41 2018 +0200 |
tree | ad4a6e4ebb7271933d8ec2b02dcb4fd9efa832cb | |
parent | 0c7ed5d264d6aac828ef3c2b89bfb16cc581d860 [diff] |
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 a05d58d..976ea02 100644 --- a/include/common/buffer.h +++ b/include/common/buffer.h
@@ -205,7 +205,7 @@ { if (b_data(b) == b->size) return; - *b->p = c; + *b_tail(b) = c; b->p = b_peek(b, b->o + 1); b->o++; }