diff options
Diffstat (limited to 'doc.c')
-rw-r--r-- | doc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc.c b/doc.c index 38b4802..97d8b34 100644 --- a/doc.c +++ b/doc.c @@ -38,8 +38,8 @@ void doc_new_line(struct doc *d) { d->txt.sz += sizeof(struct doc_line); } -void doc_add_line(struct doc *d, const char *s) { - doc_add_text(d, s); +void doc_add_line(struct doc *d, strv_t s) { + doc_add_textn(d, s.s, s.n); doc_new_line(d); } |