diff options
Diffstat (limited to 'src/blocks.c')
-rw-r--r-- | src/blocks.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/blocks.c b/src/blocks.c index 17288df..637385c 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -506,7 +506,6 @@ S_parser_feed(cmark_parser *parser, const unsigned char *buffer, size_t len, const unsigned char *eol; bufsize_t chunk_len; bool process = false; - for (eol = buffer; eol < end; ++eol) { if (S_is_line_end_char(*eol)) { if (eol < end && *eol == '\r') @@ -516,7 +515,7 @@ S_parser_feed(cmark_parser *parser, const unsigned char *buffer, size_t len, process = true; break; } - if (*eol == '\0' && eol < end - 1) { + if (*eol == '\0' && eol < end) { break; } } |