* 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:
Daniel Veillard 2008-03-03 20:21:21 +00:00
parent 4090a0870c
commit 65c4379c53
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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)