From: Luyao Huang Date: Tue, 22 Sep 2015 08:13:53 +0000 (+0800) Subject: conf: escape string for disk driver name attribute X-Git-Tag: v1.2.20-rc1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=363995b02982771ad0e7a586520a232d1c383b91;p=thirdparty%2Flibvirt.git conf: escape string for disk driver name attribute Just like e92e5ba1, this attribute was missed. Signed-off-by: Luyao Huang --- diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 2c723f97be..c8909776e4 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -18917,8 +18917,7 @@ virDomainDiskDefFormat(virBufferPtr buf, def->ioeventfd || def->event_idx || def->copy_on_read || def->discard || def->iothread) { virBufferAddLit(buf, "src->driverName) - virBufferAsprintf(buf, " name='%s'", def->src->driverName); + virBufferEscapeString(buf, " name='%s'", def->src->driverName); if (def->src->format > 0) virBufferAsprintf(buf, " type='%s'", virStorageFileFormatTypeToString(def->src->format));