summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-08-20 11:44:47 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-08-20 11:44:47 +0000
commit2a001b155a553155a4c8841ae06d49154f1c5629 (patch)
treebd54012c271c409e5d09a72d2620715ffd2cf99c /mdoc.c
parentadce1a9dfa188077e1dfa1628179e7b56110750c (diff)
downloadmandoc-2a001b155a553155a4c8841ae06d49154f1c5629.tar.gz
Fix to libmdoc passing over delimiters.
`RS' and `RE' documented in man.7.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mdoc.c b/mdoc.c
index d4d5f433..f425d4f4 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -682,7 +682,7 @@ macrowarn(struct mdoc *m, int ln, const char *buf)
int
parsemacro(struct mdoc *m, int ln, char *buf)
{
- int i, j, c, ppos;
+ int i, j, c;
char mac[5];
/* Empty lines are ignored. */
@@ -702,8 +702,6 @@ parsemacro(struct mdoc *m, int ln, char *buf)
return(1);
}
- ppos = i;
-
/* Copy the first word into a nil-terminated buffer. */
for (j = 0; j < 4; j++, i++) {
@@ -736,7 +734,7 @@ parsemacro(struct mdoc *m, int ln, char *buf)
* Begin recursive parse sequence. Since we're at the start of
* the line, we don't need to do callable/parseable checks.
*/
- if ( ! mdoc_macro(m, c, ln, ppos, &i, buf))
+ if ( ! mdoc_macro(m, c, ln, 1, &i, buf))
goto err;
return(1);