Commit f1f2f306a64783a1a5ca7fe3ee10da741801af58

Martin Mitas 2019-02-09T09:40:25

md_analyze_permissive_url_autolink: Minor cleanup.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 57029f6..e7643cd 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -3613,7 +3613,7 @@ md_analyze_permissive_url_autolink(MD_CTX* ctx, int mark_index)
 {
     MD_MARK* opener = &ctx->marks[mark_index];
     int closer_index = mark_index + 1;
-    MD_MARK* closer = &ctx->marks[mark_index + 1];
+    MD_MARK* closer = &ctx->marks[closer_index];
     MD_MARK* next_resolved_mark;
     OFF off = opener->end;
     int seen_dot = FALSE;