=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/fsplit/Attic/fsplit.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- src/usr.bin/fsplit/Attic/fsplit.c 2003/06/26 21:42:11 1.15 +++ src/usr.bin/fsplit/Attic/fsplit.c 2007/09/02 15:19:32 1.16 @@ -1,4 +1,4 @@ -/* $OpenBSD: fsplit.c,v 1.15 2003/06/26 21:42:11 deraadt Exp $ */ +/* $OpenBSD: fsplit.c,v 1.16 2007/09/02 15:19:32 deraadt Exp $ */ /* * Copyright (c) 1983, 1993 @@ -40,7 +40,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)fsplit.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: fsplit.c,v 1.15 2003/06/26 21:42:11 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: fsplit.c,v 1.16 2007/09/02 15:19:32 deraadt Exp $"; #endif /* not lint */ #include @@ -115,7 +115,7 @@ char name[20]; maxextrknt = 100; - extrnames = malloc(sizeof(char *) * maxextrknt); + extrnames = calloc(sizeof(char *), maxextrknt); if (extrnames == NULL) errx(1, "out of memory"); /* scan -e options */