=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/dump.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- src/usr.bin/make/dump.c 2013/05/22 12:14:08 1.5 +++ src/usr.bin/make/dump.c 2014/05/18 08:08:50 1.6 @@ -1,4 +1,4 @@ -/* $OpenBSD: dump.c,v 1.5 2013/05/22 12:14:08 espie Exp $ */ +/* $OpenBSD: dump.c,v 1.6 2014/05/18 08:08:50 espie Exp $ */ /* * Copyright (c) 2012 Marc Espie. * @@ -67,7 +67,7 @@ unsigned int i, j; void *e; size_t n = ohash_entries(h); - void **t = emalloc(sizeof(void *) * (n+1)); + void **t = ereallocarray(NULL, n+1, sizeof(void *)); cmp_offset = h->info.key_offset; for (i = 0, e = ohash_first(h, &j); e != NULL; e = ohash_next(h, &j))