aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_macro.c
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
commit6c161f30c252bf65b27ce98eb9c96681bb45f27e (patch)
tree06a4c7d24abe02d4bcd2b963c3ec92e578c506d1 /mdoc_macro.c
parent3f3598dbafb3e0fcfc9a097c8e1500d63cf9e609 (diff)
downloadmandoc-6c161f30c252bf65b27ce98eb9c96681bb45f27e.tar.gz
mandoc-6c161f30c252bf65b27ce98eb9c96681bb45f27e.tar.zst
mandoc-6c161f30c252bf65b27ce98eb9c96681bb45f27e.zip
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.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index f16572d4..c662990d 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_macro.c,v 1.132 2014/07/02 03:48:07 schwarze Exp $ */
+/* $Id: mdoc_macro.c,v 1.133 2014/07/02 08:21:39 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -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. */