tools/xenstore: use talloc_asprintf_append() in do_control_help()
authorJuergen Gross <jgross@suse.com>
Thu, 20 Jan 2022 06:59:47 +0000 (07:59 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 21 Jan 2022 12:42:11 +0000 (12:42 +0000)
commitc1c059fdfd9e01760af44f46d61ed2f5f4117b30
tree149de5a6783e99c6284e6ea1f81a4befb4fb14f1
parent13caa585791234fe3e3719c8376f7ea731012451
tools/xenstore: use talloc_asprintf_append() in do_control_help()

Instead of calculating the length of all help output and then
allocating the space for it, just use talloc_asprintf_append() to
expand the text as needed.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
tools/xenstore/xenstored_control.c