提交 65c4379c 编写于 作者: D Daniel Veillard

* src/capabilities.c: Cole Robinson pointed out a well formedness

  problem when generating the capabilities in the test driver.
Daniel
上级 4090a087
Mon Mar 3 21:17:29 CET 2008 Daniel Veillard <veillard@redhat.com>
* src/capabilities.c: Cole Robinson pointed out a well formedness
problem when generating the capabilities in the test driver.
Mon Mar 3 19:09:51 CET 2008 Jim Meyering <meyering@redhat.com>
Don't use first byte of string as a pointer.
......
......@@ -583,7 +583,7 @@ virCapabilitiesFormatXML(virCapsPtr caps)
caps->host.numaCell[i]->ncpus) < 0)
goto no_memory;
for (j = 0 ; j < caps->host.numaCell[i]->ncpus ; j++)
if (virBufferVSprintf(&xml, " <cpu id='%d'>\n",
if (virBufferVSprintf(&xml, " <cpu id='%d'/>\n",
caps->host.numaCell[i]->cpus[j]) < 0)
goto no_memory;
if (virBufferAddLit(&xml, " </cpus>\n") < 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册