Fix sizeof usage with a pointer to a struct