Style: superfluous cast. Second, use `sizeof(**addresses)`.