=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/finger/sprint.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/finger/sprint.c 2005/08/23 13:43:53 1.11 --- src/usr.bin/finger/sprint.c 2007/09/02 15:19:32 1.12 *************** *** 1,4 **** ! /* $OpenBSD: sprint.c,v 1.11 2005/08/23 13:43:53 espie Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: sprint.c,v 1.12 2007/09/02 15:19:32 deraadt Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. *************** *** 34,40 **** #ifndef lint /*static char sccsid[] = "from: @(#)sprint.c 5.8 (Berkeley) 12/4/90";*/ ! static const char rcsid[] = "$OpenBSD: sprint.c,v 1.11 2005/08/23 13:43:53 espie Exp $"; #endif /* not lint */ #include --- 34,40 ---- #ifndef lint /*static char sccsid[] = "from: @(#)sprint.c 5.8 (Berkeley) 12/4/90";*/ ! static const char rcsid[] = "$OpenBSD: sprint.c,v 1.12 2007/09/02 15:19:32 deraadt Exp $"; #endif /* not lint */ #include *************** *** 141,147 **** PERSON *pn, **lp; PERSON **list; ! if (!(list = (PERSON **)malloc((u_int)(entries * sizeof(PERSON *))))) err(1, "malloc"); for (lp = list, pn = phead; pn != NULL; pn = pn->next) *lp++ = pn; --- 141,147 ---- PERSON *pn, **lp; PERSON **list; ! if (!(list = (PERSON **)calloc((u_int)entries, sizeof(PERSON *)))) err(1, "malloc"); for (lp = list, pn = phead; pn != NULL; pn = pn->next) *lp++ = pn;