On Wed, Jun 22, 2016 at 12:23:38PM +0200, Joris Vink wrote:

> Don't allocate the length of a pointer but rather the
> entire size of the struct hash_head data structure
> when creating the h_table array.

> RCS file: /cvs/src/usr.bin/cvs/hash.c,v
>
> -     htable->h_table = xcalloc(hsize, sizeof(struct hash_head *));
> +     htable->h_table = xcalloc(hsize, sizeof(struct hash_head));

Looks good to me.

OK fcambus@ if anyone wants to commit.

Reply via email to