summaryrefslogtreecommitdiffstats
path: root/term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 13:57:07 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 13:57:07 +0000
commitc63c2f01f894d2d647e67f40c8eeeded5d5a84a0 (patch)
tree2a70c9db0eacb1cdc1b7edc77d2a5a468cdd3472 /term.c
parent29b0c8bc71dae656301a914c9333339ee29e3537 (diff)
downloadmandoc-c63c2f01f894d2d647e67f40c8eeeded5d5a84a0.tar.gz
Segmentation-fault fix in mdocterm.
Diffstat (limited to 'term.c')
-rw-r--r--term.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.c b/term.c
index 02febbff..daf0010c 100644
--- a/term.c
+++ b/term.c
@@ -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) {