md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
git clone https://noulin.net/git/md4c.git
Log | Files | Refs | README | LICENSE

commit 16fbd061ecf8391d769b43ac6d2c1261f3348955
parent be7fcc16ff4e35ad3995d773e189d6b009bc6be2
Author: Martin Mitas <mity@morous.org>
Date:   Mon, 21 Nov 2016 15:15:41 +0100

md_is_inline_link_spec: Fix setting of *p_end.

Diffstat:
Mmd4c/md4c.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/md4c/md4c.c b/md4c/md4c.c @@ -1789,6 +1789,7 @@ md_is_inline_link_spec(MD_CTX* ctx, const MD_LINE* lines, int n_lines, } if(CH(off) != _T(')')) goto abort; + off++; if(title_contents_beg >= title_contents_end) { attr->title = NULL; @@ -1805,6 +1806,7 @@ md_is_inline_link_spec(MD_CTX* ctx, const MD_LINE* lines, int n_lines, attr->title_needs_free = TRUE; } + *p_end = off; ret = TRUE; abort: