From 6a0f25e72a3855d5da0f631b078acbc8722a024d Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 30 Jul 2020 21:02:07 +1000 Subject: [PATCH] utils: update the buffer length when appending data Signed-off-by: Peter Hutterer --- src/util-io.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util-io.h b/src/util-io.h index 4a4d277..053ee8a 100644 --- a/src/util-io.h +++ b/src/util-io.h @@ -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