fixed sizeof warning on pointer