| author | |
| committer | |
| log | 4d3356435f453bdc24ac3c6c2da74d98c981db15 |
| tree | e3d18f2e6097b669b30b5c4b5c97b3423b747247 |
| parent | f4b8850002d5f617450a9d08b05519f390bd3f21 |
follow up for f4b8850002d51 files changed, 2 insertions(+), 0 deletions(-)
src/buffer.hpp+2| ... | ... | @@ -27,11 +27,13 @@ Buf *buf_sprintf(const char *format, ...) |
| 27 | 27 | Buf *buf_vprintf(const char *format, va_list ap); |
| 28 | 28 | |
| 29 | 29 | static inline size_t buf_len(Buf *buf) { |
| 30 | assert(buf); | |
| 30 | 31 | assert(buf->list.length); |
| 31 | 32 | return buf->list.length - 1; |
| 32 | 33 | } |
| 33 | 34 | |
| 34 | 35 | static inline char *buf_ptr(Buf *buf) { |
| 36 | assert(buf); | |
| 35 | 37 | assert(buf->list.length); |
| 36 | 38 | return buf->list.items; |
| 37 | 39 | } |