tdb2: fix arithmetic on void * pointer.