Avoid pointer arithmetic on void*.