mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Escape commas for qemuBuildRomStr
Add comma escaping for info->romfile. Signed-off-by: Sukrit Bhatnagar <skrtbhtngr@gmail.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
ace6528ae1
commit
a55cd7193a
@ -459,8 +459,10 @@ qemuBuildRomStr(virBufferPtr buf,
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (info->romfile)
|
||||
virBufferAsprintf(buf, ",romfile=%s", info->romfile);
|
||||
if (info->romfile) {
|
||||
virBufferAddLit(buf, ",romfile=");
|
||||
virQEMUBuildBufferEscapeComma(buf, info->romfile);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user