ring buffer: stop doing arithmetic on void*.