utils: update the buffer length when appending data

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-07-30 21:02:07 +10:00
parent 8ec0f4bf7c
commit 6a0f25e72a

View file

@ -117,6 +117,7 @@ iobuf_append(struct iobuf *buf, const char *data, size_t len)
}
memcpy(buf->data + buf->len, data, len);
buf->len += len;
}
static inline int