[libvirt PATCH] qemu: agent: fix array access