=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mail/names.c,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- src/usr.bin/mail/names.c 2015/01/20 16:59:07 1.22 +++ src/usr.bin/mail/names.c 2015/10/16 17:56:07 1.23 @@ -1,4 +1,4 @@ -/* $OpenBSD: names.c,v 1.22 2015/01/20 16:59:07 millert Exp $ */ +/* $OpenBSD: names.c,v 1.23 2015/10/16 17:56:07 mmcc Exp $ */ /* $NetBSD: names.c,v 1.5 1996/06/08 19:48:32 christos Exp $ */ /* @@ -88,8 +88,8 @@ if (line == NULL || *line == '\0') return(NULL); - if ((nbuf = (char *)malloc(strlen(line) + 1)) == NULL) - errx(1, "Out of memory"); + if ((nbuf = malloc(strlen(line) + 1)) == NULL) + err(1, "malloc"); top = NULL; np = NULL; cp = line;