diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-27 16:20:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-27 16:20:31 +0000 |
commit | 45fbe869155402e8d8a4dbfce5516c55d9563890 (patch) | |
tree | 0550f388cba73096a3c059034a7fb67ed37871b9 /mdoc_html.c | |
parent | 40f5062cf187d9df1882d91992550749011bdfdf (diff) | |
download | mandoc-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.c | 2 |
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 */ |