diff options
| -rw-r--r-- | src/commonmark.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonmark.c b/src/commonmark.c index cb926c5..497040a 100644 --- a/src/commonmark.c +++ b/src/commonmark.c @@ -143,7 +143,7 @@ static bool is_autolink(cmark_node *node) {      return false;    }    cmark_consolidate_text_nodes(link_text); -  if (strcmp((const char *)url, "mailto:") == 0) { +  if (strncmp((const char *)url, "mailto:", 7) == 0) {      url += 7;    }    return link_text->data != NULL &&  | 
