Skip to content

Commit 6b872ac

Browse files
Update py/ringbuf.c
Co-authored-by: Scott Shawcroft <[email protected]>
1 parent ee80000 commit 6b872ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/ringbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
bool ringbuf_init(ringbuf_t *r, uint8_t *buf, size_t capacity) {
3131
r->heap = false;
3232
r->buf = buf;
33-
r->size = capacity + 1;
33+
r->size = capacity;
3434
r->iget = r->iput = 0;
3535
return r->buf != NULL;
3636
}

0 commit comments

Comments
 (0)