Avoid some void pointer arithmetic here.