summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-27 16:20:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-27 16:20:31 +0000
commit45fbe869155402e8d8a4dbfce5516c55d9563890 (patch)
tree0550f388cba73096a3c059034a7fb67ed37871b9 /mdoc_html.c
parent40f5062cf187d9df1882d91992550749011bdfdf (diff)
downloadmandoc-45fbe869155402e8d8a4dbfce5516c55d9563890.tar.gz
Fix the obsolete .Db (toggle debug mode) macro to ignore its arguments
and not trigger an assertion when there is more than one argument; the latter found by jsg@ with afl.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 2f561b6f..43123028 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -183,7 +183,7 @@ static const struct htmlmdoc mdocs[MDOC_MAX] = {
{mdoc_quote_pre, mdoc_quote_post}, /* Bq */
{mdoc_xx_pre, NULL}, /* Bsx */
{mdoc_bx_pre, NULL}, /* Bx */
- {NULL, NULL}, /* Db */
+ {mdoc_skip_pre, NULL}, /* Db */
{NULL, NULL}, /* Dc */
{mdoc_quote_pre, mdoc_quote_post}, /* Do */
{mdoc_quote_pre, mdoc_quote_post}, /* Dq */