diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-08 13:57:07 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-08 13:57:07 +0000 |
commit | c63c2f01f894d2d647e67f40c8eeeded5d5a84a0 (patch) | |
tree | 2a70c9db0eacb1cdc1b7edc77d2a5a468cdd3472 /term.c | |
parent | 29b0c8bc71dae656301a914c9333339ee29e3537 (diff) | |
download | mandoc-c63c2f01f894d2d647e67f40c8eeeded5d5a84a0.tar.gz |
Segmentation-fault fix in mdocterm.
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |