=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/strip/Attic/strip.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- src/usr.bin/strip/Attic/strip.c 2004/10/09 20:36:05 1.23 +++ src/usr.bin/strip/Attic/strip.c 2007/09/02 15:19:34 1.24 @@ -1,4 +1,4 @@ -/* $OpenBSD: strip.c,v 1.23 2004/10/09 20:36:05 mickey Exp $ */ +/* $OpenBSD: strip.c,v 1.24 2007/09/02 15:19:34 deraadt Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. @@ -37,7 +37,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)strip.c 5.8 (Berkeley) 11/6/91";*/ -static char rcsid[] = "$OpenBSD: strip.c,v 1.23 2004/10/09 20:36:05 mickey Exp $"; +static char rcsid[] = "$OpenBSD: strip.c,v 1.24 2007/09/02 15:19:34 deraadt Exp $"; #endif /* not lint */ #include @@ -268,7 +268,7 @@ warnx("%s", strerror(ENOMEM)); goto end; } - mapping = malloc(nsyms * sizeof(unsigned int)); + mapping = calloc(nsyms, sizeof(unsigned int)); if (!mapping) { warnx("%s", strerror(ENOMEM)); goto end;