Update ringbuffer.c