]> git.cameronkatri.com Git - mandoc.git/blobdiff - term.c
Segmentation-fault fix in mdocterm.
[mandoc.git] / 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>
  *
 /*
  * 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) {
 
        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");
                        errx(1, "expected single value");
-               p->offset += arg_offset(&node->args->argv[i]);
+               p->offset += arg_offset(&node->parent->args->argv[i]);
        }
 
        switch (type) {
        }
 
        switch (type) {