From 65c4379c53a96a64c4bdb1f8014bc34d300e5aa7 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 3 Mar 2008 20:21:21 +0000 Subject: [PATCH] * src/capabilities.c: Cole Robinson pointed out a well formedness problem when generating the capabilities in the test driver. Daniel --- ChangeLog | 5 +++++ src/capabilities.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 50e48f6aff..9c1a1e2d5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 3 21:17:29 CET 2008 Daniel Veillard + + * 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 Don't use first byte of string as a pointer. diff --git a/src/capabilities.c b/src/capabilities.c index bedd445923..01bb30803d 100644 --- a/src/capabilities.c +++ b/src/capabilities.c @@ -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, " \n", + if (virBufferVSprintf(&xml, " \n", caps->host.numaCell[i]->cpus[j]) < 0) goto no_memory; if (virBufferAddLit(&xml, " \n") < 0)