summaryrefslogtreecommitdiffstats
path: root/libmdocml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-11-29 14:14:21 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-11-29 14:14:21 +0000
commit984026174354a406cd626774192234c2d00ccbbb (patch)
tree1805564f4bd8e7ef5a5a2cf386fc343edd55ed89 /libmdocml.c
parentafac8c1eebed17d57ca78b1d322b71cc1f48af97 (diff)
downloadmandoc-984026174354a406cd626774192234c2d00ccbbb.tar.gz
Inclusion of "real" validation code.
Diffstat (limited to 'libmdocml.c')
-rw-r--r--libmdocml.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libmdocml.c b/libmdocml.c
index 3b7b67f2..06c9266c 100644
--- a/libmdocml.c
+++ b/libmdocml.c
@@ -85,6 +85,8 @@ static int md_buf_flush(struct md_mbuf *buf)
int
md_buf_putchar(struct md_mbuf *buf, char c)
{
+
+ assert(buf);
return(md_buf_puts(buf, &c, 1));
}
@@ -92,6 +94,8 @@ md_buf_putchar(struct md_mbuf *buf, char c)
int
md_buf_putstring(struct md_mbuf *buf, const char *p)
{
+
+ assert(buf);
return(md_buf_puts(buf, p, strlen(p)));
}
@@ -207,7 +211,7 @@ again:
}
line[pos] = 0;
- if ( ! (*fp)(p, line, pos))
+ if ( ! (*fp)(p, line))
return(md_run_leave(args, mbuf, rbuf, -1, p));
rbuf->line++;
pos = 0;