[libvirt] [PATCH 4/5] Use VIR_STRNDUP instead of modifying the matched string