summaryrefslogtreecommitdiffstats
path: root/libmdocml.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmdocml.c')
-rw-r--r--libmdocml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmdocml.c b/libmdocml.c
index bb83e43a..11936f91 100644
--- a/libmdocml.c
+++ b/libmdocml.c
@@ -199,6 +199,7 @@ again:
return(md_run_leave(args, mbuf, rbuf, -1, p));
}
+ line[pos] = 0;
if ( ! (*fp)(args, mbuf, rbuf, line, pos, p))
return(md_run_leave(args, mbuf, rbuf, -1, p));
rbuf->line++;