summary refs log tree commit diff
path: root/parse.c
diff options
context:
space:
mode:
authorwrmr2024-11-08 23:25:03 -0500
committerwrmr2024-11-08 23:25:03 -0500
commit012ed5bd6455ce291741ad540a5e356e4810133b (patch)
tree32bfb5425b1f1a899c497ce817b44111dcd0ff54 /parse.c
parent6050dcdd3669b7102f35a226a6a3ee485c7b703a (diff)
use strv_t for doc_add_text, remove doc_add_textn, add strv()
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
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;
 	}