Fix wrong pointer arithmetic.