md_analyze_permissive_url_autolink: Minor cleanup.
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;