mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
* src/capabilities.c: Cole Robinson pointed out a well formedness
problem when generating the capabilities in the test driver. Daniel
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user