提交 a55cd719 编写于 作者: S Sukrit Bhatnagar 提交者: John Ferlan

qemu: Escape commas for qemuBuildRomStr

Add comma escaping for info->romfile.
Signed-off-by: NSukrit Bhatnagar <skrtbhtngr@gmail.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 ace6528a
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册