Prior to this commit, html output exhibiits a doppler effect for
content by continually printing strings passed from
table_print_html_cell.
Fixes: cb139fa8b3a1 ("table: New function table_format() for formatting a table
as a string.")
Cc: Ben Pfaff <[email protected]>
Cc: Jakub Sitnicki <[email protected]>
Signed-off-by: Aaron Conole <[email protected]>
---
lib/table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/table.c b/lib/table.c
index 19bf89262..ab72668c7 100644
--- a/lib/table.c
+++ b/lib/table.c
@@ -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;
--
2.14.3
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev