From: Fletcher T. Penney Date: Thu, 13 Apr 2017 20:59:56 +0000 (-0400) Subject: FIXED: Fix bug in mmd_tokenize_string() X-Git-Tag: 6.0.5^2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ee48f1b5b97c7de0866f785819332e0a537446f;p=multimarkdown FIXED: Fix bug in mmd_tokenize_string() --- diff --git a/Sources/libMultiMarkdown/mmd.c b/Sources/libMultiMarkdown/mmd.c index bf6e0c0..965e9d2 100644 --- a/Sources/libMultiMarkdown/mmd.c +++ b/Sources/libMultiMarkdown/mmd.c @@ -809,8 +809,8 @@ token * mmd_tokenize_string(mmd_engine * e, size_t start, size_t len, bool stop_ int type; // TOKEN type token * t; // Create tokens for incorporation - token * root = token_new(0,0,0); // Store the final parse tree here - token * line = token_new(0,0,0); // Store current line here + token * root = token_new(0,start,0); // Store the final parse tree here + token * line = token_new(0,start,0); // Store current line here const char * last_stop = &e->dstr->str[start]; // Remember where last token ended