Skip to content

Commit 2d65cd3

Browse files
Merge pull request #330 from ioquatix/patch-1
warning: passing argument 1 of ‘validate_protocol’ discards ‘const’ qualifier from pointer target type
2 parents 6913733 + bcdba88 commit 2d65cd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/autolink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ static cmark_node *match(cmark_syntax_extension *ext, cmark_parser *parser,
296296
// inline was finished in inlines.c.
297297
}
298298

299-
static bool validate_protocol(char protocol[], uint8_t *data, size_t rewind, size_t max_rewind) {
299+
static bool validate_protocol(const char protocol[], uint8_t *data, size_t rewind, size_t max_rewind) {
300300
size_t len = strlen(protocol);
301301

302302
if (len > (max_rewind - rewind)) {

0 commit comments

Comments
 (0)