Re: [PATCH 12/16] xenParseXLUSBController: Avoid use of virStrndup

2021-03-10 Thread Ján Tomko
On a Tuesday in 2021, Peter Krempa wrote: Use g_strndup with a freed buffer instead of the more complex approach using virStrndup. s/virStrndup/virStrncpy/ here and in the commit summary. Signed-off-by: Peter Krempa --- src/libxl/xen_xl.c | 51 ++

[PATCH 12/16] xenParseXLUSBController: Avoid use of virStrndup

2021-03-02 Thread Peter Krempa
Use g_strndup with a freed buffer instead of the more complex approach using virStrndup. Signed-off-by: Peter Krempa --- src/libxl/xen_xl.c | 51 ++ 1 file changed, 11 insertions(+), 40 deletions(-) diff --git a/src/libxl/xen_xl.c