=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/pr/pr.c,v retrieving revision 1.26 retrieving revision 1.27 diff -u -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 +1,4 @@ -/* $OpenBSD: pr.c,v 1.26 2008/04/18 20:18:21 tobias Exp $ */ +/* $OpenBSD: pr.c,v 1.27 2009/02/07 17:51:22 chl Exp $ */ /*- * Copyright (c) 1991 Keith Muller. @@ -41,7 +41,7 @@ #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 $"; +static char *rcsid = "$OpenBSD: pr.c,v 1.27 2009/02/07 17:51:22 chl Exp $"; #endif /* not lint */ #include @@ -376,7 +376,7 @@ /* * allocate page buffer */ - if ((buf = malloc((unsigned)lines*mxlen)) == NULL) { + if ((buf = calloc((unsigned)lines, mxlen)) == NULL) { mfail(); return(1); }