]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src: Use virStrcpyStatic() wherever possible
authorAndrea Bolognani <abologna@redhat.com>
Mon, 16 Jul 2018 14:20:39 +0000 (16:20 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 23 Jul 2018 12:27:21 +0000 (14:27 +0200)
commitbfb8ab1b2caf4a538aba8ccc40f5e4f7970c90bf
treef83655d31fc7bd0263e90bc7f19e6562db903b80
parentc9d5f2d989d67fa7e63cd875d543591c68b4062b
src: Use virStrcpyStatic() wherever possible

This convenience macro was created for the simple cases
where the length of the source string and the size of the
destination buffer can be figued out with strlen() and
sizeof() respectively, so we should use it wherever
possible instead of open-coding parts of it.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
src/conf/nwfilter_conf.c
src/util/virfdstream.c
src/util/virlog.c
src/util/virnetdev.c
src/xenconfig/xen_xl.c