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

Ján Tomko jtomko at redhat.com
Wed Mar 10 17:58:41 UTC 2021


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 <pkrempa at redhat.com>
>---
> src/libxl/xen_xl.c | 51 ++++++++++------------------------------------
> 1 file changed, 11 insertions(+), 40 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210310/0be8d219/attachment-0001.sig>


More information about the libvir-list mailing list