summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2015-01-30 00:19:26 +0000
committerschwarze <schwarze@openbsd.org>2015-01-30 00:19:26 +0000
commit5904683756b252a347fbc8b8eec8a6be35e1ff7c (patch)
tree857fb2809dd73f399d71691c01ec4781ad5fabb8
parentRework vis.3 so it has standard sections. (diff)
downloadwireguard-openbsd-5904683756b252a347fbc8b8eec8a6be35e1ff7c.tar.xz
wireguard-openbsd-5904683756b252a347fbc8b8eec8a6be35e1ff7c.zip
correctly handle table layout lines starting with a dot
Diffstat (limited to '')
-rw-r--r--usr.bin/mandoc/roff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/roff.c b/usr.bin/mandoc/roff.c
index e23b73a6a1b..ee692b196f8 100644
--- a/usr.bin/mandoc/roff.c
+++ b/usr.bin/mandoc/roff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: roff.c,v 1.130 2015/01/28 17:30:37 schwarze Exp $ */
+/* $OpenBSD: roff.c,v 1.131 2015/01/30 00:19:26 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2012, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -1200,7 +1200,7 @@ roff_parseln(struct roff *r, int ln, struct buf *buf, int *offs)
if (r->eqn != NULL)
return(eqn_read(&r->eqn, ln, buf->buf, ppos, offs));
if (r->tbl != NULL && ( ! ctl || buf->buf[pos] == '\0'))
- return(tbl_read(r->tbl, ln, buf->buf, pos));
+ return(tbl_read(r->tbl, ln, buf->buf, ppos));
if ( ! ctl)
return(roff_parsetext(buf, pos, offs));