=================================================================== RCS file: /cvs/mandoc/out.c,v retrieving revision 1.37 retrieving revision 1.38 diff -u -p -r1.37 -r1.38 --- mandoc/out.c 2011/01/30 16:05:37 1.37 +++ mandoc/out.c 2011/03/15 16:23:51 1.38 @@ -1,4 +1,4 @@ -/* $Id: out.c,v 1.37 2011/01/30 16:05:37 schwarze Exp $ */ +/* $Id: out.c,v 1.38 2011/03/15 16:23:51 kristaps Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -431,7 +431,8 @@ tblcalc(struct rofftbl *tbl, const struct tbl_span *sp */ assert(NULL == tbl->cols); - tbl->cols = calloc(sp->tbl->cols, sizeof(struct roffcol)); + tbl->cols = calloc + ((size_t)sp->tbl->cols, sizeof(struct roffcol)); hp = sp->head;