diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-10-19 09:41:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-10-19 09:41:23 +0000 |
commit | e0075146232e466a27e2c638664d1e62de8214be (patch) | |
tree | eb650e037a7ab6e6994253910da93f13bee2edb3 /usr.bin | |
parent | 4fdd5685c5baa89e50c3c3180adb9f4373b2bc8f (diff) |
sync to 1.9.6: fix segfault in .Bl -column
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mandoc/mdoc_term.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index a52872a15cf..f83af438c36 100644 --- a/usr.bin/mandoc/mdoc_term.c +++ b/usr.bin/mandoc/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.55 2009/09/21 20:57:57 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.56 2009/10/19 09:41:22 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -757,13 +757,13 @@ termp_it_pre(DECL_ARGS) * last column case, set to stretch to the margin). */ for (i = 0, n = node->prev; n && - i < (int)bl->args[vals[2]].argv->sz; + i < (int)bl->args->argv[vals[2]].sz; n = n->prev, i++) offset += arg_width (&bl->args->argv[vals[2]], i); /* Whether exceeds maximum column. */ - if (i < (int)bl->args[vals[2]].argv->sz) + if (i < (int)bl->args->argv[vals[2]].sz) width = arg_width(&bl->args->argv[vals[2]], i); else width = 0; |