Skip to content

Commit 89b4cd5

Browse files
committed
Bugfixes
1 parent cfd56ef commit 89b4cd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/autolink.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,15 @@ static cmark_node *match(cmark_syntax_extension *ext, cmark_parser *parser,
270270
}
271271

272272
static bool validate_protocol(char protocol[], uint8_t *data, int rewind) {
273-
u_int8_t len = strlen(protocol);
273+
uint8_t len = strlen(protocol);
274274

275275
for (int i = 1; i <= len; i++) {
276276
if (data[-rewind - i] != protocol[len - i]) {
277277
return false;
278278
}
279279
}
280280

281-
return !cmark_isalnum(data[-rewind - len - 1]));
281+
return !cmark_isalnum(data[-rewind - len - 1]);
282282
}
283283

284284
static void postprocess_text(cmark_parser *parser, cmark_node *text, int offset, int depth) {

0 commit comments

Comments
 (0)