=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/pr/pr.c,v retrieving revision 1.26 retrieving revision 1.27 diff -c -r1.26 -r1.27 *** src/usr.bin/pr/pr.c 2008/04/18 20:18:21 1.26 --- src/usr.bin/pr/pr.c 2009/02/07 17:51:22 1.27 *************** *** 1,4 **** ! /* $OpenBSD: pr.c,v 1.26 2008/04/18 20:18:21 tobias Exp $ */ /*- * Copyright (c) 1991 Keith Muller. --- 1,4 ---- ! /* $OpenBSD: pr.c,v 1.27 2009/02/07 17:51:22 chl Exp $ */ /*- * Copyright (c) 1991 Keith Muller. *************** *** 41,47 **** #ifndef lint /* from: static char sccsid[] = "@(#)pr.c 8.1 (Berkeley) 6/6/93"; */ ! static char *rcsid = "$OpenBSD: pr.c,v 1.26 2008/04/18 20:18:21 tobias Exp $"; #endif /* not lint */ #include --- 41,47 ---- #ifndef lint /* from: static char sccsid[] = "@(#)pr.c 8.1 (Berkeley) 6/6/93"; */ ! static char *rcsid = "$OpenBSD: pr.c,v 1.27 2009/02/07 17:51:22 chl Exp $"; #endif /* not lint */ #include *************** *** 376,382 **** /* * allocate page buffer */ ! if ((buf = malloc((unsigned)lines*mxlen)) == NULL) { mfail(); return(1); } --- 376,382 ---- /* * allocate page buffer */ ! if ((buf = calloc((unsigned)lines, mxlen)) == NULL) { mfail(); return(1); }