From 8cbca387269e5c0371cda8d4e2e801399ea743cb Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Tue, 2 Jul 2024 06:26:17 +0200 Subject: [PATCH] Bugfix incrementing count by correct amount in rb_push_many --- ringbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ringbuf.c b/ringbuf.c index e3c7067..23adb94 100644 --- a/ringbuf.c +++ b/ringbuf.c @@ -107,7 +107,7 @@ rb_push_many(struct RingBuf *rb, const void *items, MEMCPY_T memcpy_fn, // Advance the write head rb->write_head = (char *)rb->write_head + rb->struct_size * n; - rb->count+=n; + rb->count += n; return WriteOk; }