From 012ed5bd6455ce291741ad540a5e356e4810133b Mon Sep 17 00:00:00 2001 From: wrmr Date: Fri, 8 Nov 2024 23:25:03 -0500 Subject: use strv_t for doc_add_text, remove doc_add_textn, add strv() --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index ff0c973..b62ea8a 100644 --- a/parse.c +++ b/parse.c @@ -78,7 +78,7 @@ int parse_gophermap_line(struct doc *d, strv_t ln) { url[urln] = 0; doc_set_link(d, doc_add_link(d, url)); case 'i': - doc_add_textn(d, bits.dstr.s, bits.dstr.n); + doc_add_text(d, bits.dstr); doc_new_line(d); break; } -- cgit 1.4.1-2-gfad0