summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commonmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index 05c3510..fc508c6 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -200,7 +200,7 @@ longest_backtick_sequence(cmark_chunk *code)
int longest = 0;
int current = 0;
int i = 0;
- while (i < code->len) {
+ while (i <= code->len) {
if (code->data[i] == '`') {
current++;
} else {