summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Conole <aconole@redhat.com>2018-08-07 20:34:52 -0400
committerBen Pfaff <blp@ovn.org>2018-08-08 11:18:07 -0700
commitc3cc694b93dd523176d2131a4b1b3b3170644638 (patch)
tree11d26cf98c76ab833fc62635e9b0a592259c615e /lib
parent3562353e0e2039d90f99f5e1165e3d7899abde91 (diff)
downloadopenvswitch-c3cc694b93dd523176d2131a4b1b3b3170644638.tar.gz
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: cb139fa8b3a1 ("table: New function table_format() for formatting a table as a string.") Cc: Ben Pfaff <blp@ovn.org> Cc: Jakub Sitnicki <jsitnicki@gmail.com> Signed-off-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/table.c2
1 files changed, 1 insertions, 1 deletions
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;