]> git.cameronkatri.com Git - mandoc.git/blobdiff - mdoc_macro.c
Do not read past the end of the buffer if an "f" layout font modifier
[mandoc.git] / mdoc_macro.c
index 158e1bbd2a4a549ea905b20fd95cd641089bd3a9..f04acb96e73bbbb43285a8ad3ad20b6590c30c8b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_macro.c,v 1.179 2015/02/06 07:13:14 schwarze Exp $ */
+/*     $Id: mdoc_macro.c,v 1.180 2015/02/07 16:42:33 schwarze Exp $ */
 /*
  * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010, 2012-2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -941,6 +941,7 @@ blk_full(MACRO_PROT_ARGS)
                                            mdoc_macronames[tok],
                                            mdoc_macronames[n->tok]);
                                        rew_pending(mdoc, n);
+                                       n = mdoc->last;
                                        continue;
                                case MDOC_It:
                                        /* Delay in case it's astray. */