fix compilation warning with sizeof and a pointer