summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-02 08:21:39 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-02 08:21:39 +0000
commit4251a52721ec8ec2c8efc2409d7a08a751793bc5 (patch)
tree1d6b7413cda2afe5a23ec92d6e381c1a261b3c49
parent75e12f6fac5699d80ada9d0aa0128cc3d922a73c (diff)
downloadmandoc-4251a52721ec8ec2c8efc2409d7a08a751793bc5.tar.gz
Fix the column numbers associated with in_line_argn() macros;
this bug is more than four years old, introduced by kristaps@ in mdocml.bsd.lv rev. 1.46, March 30, 2010.
-rw-r--r--mdoc_macro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index b891df79..502d06ef 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -1573,7 +1573,7 @@ in_line_argn(MACRO_PROT_ARGS)
return(0);
continue;
} else if (0 == j)
- if ( ! mdoc_elem_alloc(mdoc, line, la, tok, arg))
+ if ( ! mdoc_elem_alloc(mdoc, line, ppos, tok, arg))
return(0);
if (j == maxargs && ! flushed) {
@@ -1609,7 +1609,7 @@ in_line_argn(MACRO_PROT_ARGS)
j++;
}
- if (0 == j && ! mdoc_elem_alloc(mdoc, line, la, tok, arg))
+ if (0 == j && ! mdoc_elem_alloc(mdoc, line, ppos, tok, arg))
return(0);
/* Close out in a consistent state. */