summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 12:40:27 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 12:40:27 +0000
commit74e270cb031a950090a2f9a9c1a083e2c45ebb6a (patch)
tree9227d21db7c9d0ba4e9a907977f4ceb68a7f546f /mdoc.c
parentca7eb2795830f918afc855b2fdaabe093d8cee13 (diff)
downloadmandoc-74e270cb031a950090a2f9a9c1a083e2c45ebb6a.tar.gz
Memory fixes in new dynamic schema.
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc.c b/mdoc.c
index f3f7f00f..8e9e1d9a 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -519,6 +519,8 @@ parsemacro(struct mdoc *m, int ln, char *buf)
break;
}
+ /* FIXME: be able to skip unknown macro lines! */
+
mac[i - 1] = 0;
if (i == 5 || i <= 2) {