mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-02-23 02:40:43 +01:00
utils: update the buffer length when appending data
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
8ec0f4bf7c
commit
6a0f25e72a
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue