=================================================================== RCS file: /cvs/mandoc/mdoc_term.c,v retrieving revision 1.71 retrieving revision 1.74 diff -u -p -r1.71 -r1.74 --- mandoc/mdoc_term.c 2009/09/17 13:17:30 1.71 +++ mandoc/mdoc_term.c 2009/09/20 17:48:13 1.74 @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.71 2009/09/17 13:17:30 kristaps Exp $ */ +/* $Id: mdoc_term.c,v 1.74 2009/09/20 17:48:13 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons * @@ -493,7 +493,7 @@ print_head(DECL_ARGS) } -/* TODO: put into util file. */ +/* FIXME: put in utility file for front-ends. */ static size_t arg_width(const struct mdoc_argv *arg, int pos) { @@ -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) { @@ -561,6 +562,7 @@ arg_listtype(const struct mdoc_node *n) } +/* FIXME: put in utility file for front-ends. */ static size_t arg_offset(const struct mdoc_argv *arg) { @@ -760,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