=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.72 retrieving revision 1.74 diff -u -p -r1.72 -r1.74 --- mandoc/mdoc_term.c 2009/09/20 11:05:22 1.72 +++ mandoc/mdoc_term.c 2009/09/20 17:48:13 1.74 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.72 2009/09/20 11:05:22 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.74 2009/09/20 17:48:13 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -520,6 +520,7 @@ arg_width(const struct mdoc_argv *arg, int pos) } +/* FIXME: put in utility file for front-ends. */ static int arg_listtype(const struct mdoc_node *n) { @@ -761,7 +762,7 @@ termp_it_pre(DECL_ARGS) * the 0 will be adjusted to default 10 or, if in the * last column case, set to stretch to the margin). */ - for (i = 0, n = node->prev; n && n && + for (i = 0, n = node->prev; n && i < (int)bl->args[vals[2]].argv->sz; n = n->prev, i++) offset += arg_width