test-iov: replace g_malloc()+memcpy() with g_memdup()
commit38cc1dba1fd3a906ecf8384f592b2d4952b0e43c
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 6 Jun 2017 20:45:43 +0000 (7 00:45 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 31 Aug 2017 10:29:07 +0000 (31 12:29 +0200)
tree427de1fdadfb897f052141efd7f1a476f4c40e21
parentad2c19937e0b80f8037e411f72e6d6078fe673ca
test-iov: replace g_malloc()+memcpy() with g_memdup()

I found these pattern via grepping the source tree. I don't have a
coccinelle script for it!

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
tests/test-iov.c