=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/str.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- src/usr.bin/make/str.c 2014/05/12 19:11:19 1.30 +++ src/usr.bin/make/str.c 2014/05/18 08:08:50 1.31 @@ -1,4 +1,4 @@ -/* $OpenBSD: str.c,v 1.30 2014/05/12 19:11:19 espie Exp $ */ +/* $OpenBSD: str.c,v 1.31 2014/05/18 08:08:50 espie Exp $ */ /* $NetBSD: str.c,v 1.13 1996/11/06 17:59:23 christos Exp $ */ /*- @@ -97,7 +97,7 @@ size_t len; int argmax = 50; size_t curlen = 0; - char **argv = emalloc((argmax + 1) * sizeof(char *)); + char **argv = ereallocarray(NULL, argmax + 1, sizeof(char *)); /* skip leading space chars. */ for (; *str == ' ' || *str == '\t'; ++str)