table: fix html buffer output
Prior to this commit, html output exhibits a doppler effect for
content by continually printing strings passed from
table_print_html_cell.
Fixes: ("table: New function table_format() for formatting a table as a string.")
Cc: Ben Pfaff
Cc: Jakub Sitnicki
@@ -349,7 +349,7 @@ static void
table_escape_html_text__(const char *content, size_t n, struct ds *s)
{
if (!strpbrk(content, "&<>\"")) {
- ds_put_cstr(s, content);
+ ds_put_buffer(s, content, n);
} else {
size_t i;
