fix type for sizeof; it shouldn't be the pointer.