summaryrefslogtreecommitdiff
path: root/src/cmark.h
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-11-11 12:51:54 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-11-11 12:52:41 -0800
commit3739c54c9a3ce1f79452548a49f82878868fa6d0 (patch)
tree020196e9df40d35f9eb5c67cb550db8c8e8a0e4c /src/cmark.h
parentcb744bd09103321b18ee979edac2cb26a414f7be (diff)
Improved cmark_markdown_to_html.
Added length parameter so we can avoid strlen. Properly free buffer.
Diffstat (limited to 'src/cmark.h')
-rw-r--r--src/cmark.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmark.h b/src/cmark.h
index 6347901..5f0d5f7 100644
--- a/src/cmark.h
+++ b/src/cmark.h
@@ -118,7 +118,7 @@ void cmark_free_nodes(node_block *e);
void cmark_debug_print(node_block *root);
void cmark_render_html(strbuf *html, node_block *root);
-unsigned char *cmark_markdown_to_html(unsigned char *text);
+unsigned char *cmark_markdown_to_html(unsigned char *text, int len);
#ifdef __cplusplus
}