]> git.cameronkatri.com Git - mandoc.git/commitdiff
Segmentation-fault fix in mdocterm.
authorKristaps Dzonsons <kristaps@bsd.lv>
Sun, 8 Mar 2009 13:57:07 +0000 (13:57 +0000)
committerKristaps Dzonsons <kristaps@bsd.lv>
Sun, 8 Mar 2009 13:57:07 +0000 (13:57 +0000)
term.c

diff --git a/term.c b/term.c
index cda44539f9d6d78646b38ba992f77a4c47cb9496..d99fbd29ffca3b0114787de72d0ff8f565c6320b 100644 (file)
--- 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 <kristaps@kth.se>
  *
@@ -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) {