Commit Diff


commit - 32c44488c70912a8ea50e091e6e3e2477139cf1b
commit + dfc5d927badb6ca7338a94e528e49b15de7f1453
blob - 2257c92e64e7cd1afb5e8c82a8a5a27aa7c519f7
blob + fe0e0dc3043977dba823f5063f72446d3e0c3a95
--- parser_gemtext.c
+++ parser_gemtext.c
@@ -138,6 +138,7 @@ parse_title(struct parser *p, const char *line, size_t
 	enum line_type t = LINE_TITLE_1;
 	char *l;
 
+	line++, len--;
 	while (len > 0 && *line == '#') {
 		line++, len--;
 		t++;