Update ring_buffer.c