summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-11-26 19:22:51 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-11-26 19:22:51 +0000
commit8bd3c3d698af0e07d0c828e4e83d7d63ecb5b937 (patch)
tree7af47dda2bae5ee9772d082f737532a92ab523df
parent54ae5bad68aa6c3d014c8ecdb59a4fbbaa3fe3fd (diff)
downloadmandoc-8bd3c3d698af0e07d0c828e4e83d7d63ecb5b937.tar.gz
The .Sm macro accepts at most one argument;
fixing an assertion failure found by jsg@ with afl.
-rw-r--r--mdoc_macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index e62b76cb..08dc3b27 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -171,7 +171,7 @@ const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
{ blk_part_exp, MDOC_CALLABLE | MDOC_PARSED |
MDOC_EXPLICIT | MDOC_JOIN }, /* So */
{ blk_part_imp, MDOC_CALLABLE | MDOC_PARSED | MDOC_JOIN }, /* Sq */
- { in_line_eoln, 0 }, /* Sm */
+ { in_line_argn, 0 }, /* Sm */
{ in_line, MDOC_CALLABLE | MDOC_PARSED | MDOC_JOIN }, /* Sx */
{ in_line, MDOC_CALLABLE | MDOC_PARSED | MDOC_JOIN }, /* Sy */
{ in_line, MDOC_CALLABLE | MDOC_PARSED }, /* Tn */