$OpenBSD: patch-pbm_atktopbm_c,v 1.1 2003/03/29 04:13:54 brad Exp $ --- pbm/atktopbm.c.orig Sat Mar 18 23:33:36 2000 +++ pbm/atktopbm.c Fri Mar 28 20:22:06 2003 @@ -322,8 +322,7 @@ ReadATKRaster(file, rwidth, rheight, des *rwidth = width; *rheight = height; rowlen = (width + 7) / 8; - *destaddr = (unsigned char *) malloc (sizeof(unsigned char) * height * -rowlen); + *destaddr = (unsigned char *) malloc3 (sizeof(unsigned char), height, rowlen); for (row = 0; row < height; row++) { long c;