aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-31 14:14:14 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-31 14:14:14 +0100
commit399280a99d0fc01dd713690c2632b0718ffc0a00 (patch)
treead5caaeff7e5bdcb97dbb86eec685678f016da41 /tools
parent9ef62339785c1afac5bb46b59e6f37e7ccf1dcc7 (diff)
downloadxen-399280a99d0fc01dd713690c2632b0718ffc0a00.tar.gz
xen-399280a99d0fc01dd713690c2632b0718ffc0a00.tar.bz2
xen-399280a99d0fc01dd713690c2632b0718ffc0a00.zip
xend: Correct indexing in xc_cpu_to_node_t map.
Signed-off-by: Beth Kon <eak@us.ibm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/python/xen/lowlevel/xc/xc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c
index 021d7f2a7a..93402b1e5b 100644
--- a/tools/python/xen/lowlevel/xc/xc.c
+++ b/tools/python/xen/lowlevel/xc/xc.c
@@ -685,7 +685,7 @@ static PyObject *pyxc_physinfo(XcObject *self)
char cpu_cap[128], *p=cpu_cap, *q=cpu_cap;
int i, j, max_cpu_id;
PyObject *ret_obj, *node_to_cpu_obj;
- xc_cpu_to_node_t map[MAX_CPU_ID];
+ xc_cpu_to_node_t map[MAX_CPU_ID + 1];
set_xen_guest_handle(info.cpu_to_node, map);
info.max_cpu_id = MAX_CPU_ID;