summaryrefslogtreecommitdiff
path: root/src/commonmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commonmark.c')
-rw-r--r--src/commonmark.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index 89aef5b..41bfa52 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -146,8 +146,7 @@ static bool is_autolink(cmark_node *node) {
if (strcmp((const char *)url, "mailto:") == 0) {
url += 7;
}
- return strncmp((const char *)url, (char *)link_text->as.literal.data,
- link_text->as.literal.len) == 0;
+ return strcmp((const char *)url, (char *)link_text->as.literal.data) == 0;
}
// if node is a block node, returns node.