[libvirt PATCH 1/6] virt-login-shell: correctly calculate string length