cbuffer
cbuffer copied to clipboard
Fix head index not wrapped around
me->head in cbuf_poll() needs to be wrapped
I can confirm that this change is necessary, without it there is an invalid access as cbuf_peek
returns a pointer past the buffer.