From: Kristaps Dzonsons Date: Sun, 8 Mar 2009 13:57:07 +0000 (+0000) Subject: Segmentation-fault fix in mdocterm. X-Git-Tag: VERSION_1_4_2~8 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/af3ec26c1e8e8d50cc32294e93062236153d2fa0?ds=inline Segmentation-fault fix in mdocterm. --- diff --git a/term.c b/term.c index cda44539..d99fbd29 100644 --- a/term.c +++ b/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.44 2009/03/08 13:52:29 kristaps Exp $ */ +/* $Id: term.c,v 1.45 2009/03/08 13:57:07 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -1203,9 +1203,9 @@ termp_bd_pre(DECL_ARGS) i = arg_getattr(MDOC_Offset, node->parent); if (-1 != i) { - if (1 != node->args->argv[i].sz) + if (1 != node->parent->args->argv[i].sz) errx(1, "expected single value"); - p->offset += arg_offset(&node->args->argv[i]); + p->offset += arg_offset(&node->parent->args->argv[i]); } switch (type) {