]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Resolve Coverity BAD_SIZEOF
authorJohn Ferlan <jferlan@redhat.com>
Fri, 12 Sep 2014 12:22:58 +0000 (08:22 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 15 Sep 2014 15:01:32 +0000 (11:01 -0400)
commit3a0002b588bb32ee71173b656f9d050584e7bdb2
treef9a9b8447390555d827eca6f5fc5c1d0a642de5b
parent07334ccbac01c277bb311ea2512cb44400052586
qemu: Resolve Coverity BAD_SIZEOF

Coverity complains about the calculation of the buf & len within
the PROBE macro.  So to quiet things down, do the calculation prior
to usage in either write() or qemuMonitorIOWriteWithFD() calls and
then have the PROBE use the calculated values - which works.
src/qemu/qemu_monitor.c