ia64/xen-unstable

changeset 14169:8939316a0735

Fix off-by-one preventing the last elfnote from being read in xc.c.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
author kfraser@localhost.localdomain
date Wed Feb 28 09:38:14 2007 +0000 (2007-02-28)
parents 5217185f7588
children 270a5e2ead43
files tools/python/xen/lowlevel/xc/xc.c
line diff
     1.1 --- a/tools/python/xen/lowlevel/xc/xc.c	Tue Feb 27 20:27:18 2007 +0000
     1.2 +++ b/tools/python/xen/lowlevel/xc/xc.c	Wed Feb 28 09:38:14 2007 +0000
     1.3 @@ -411,7 +411,7 @@ static PyObject *pyxc_linux_build(XcObje
     1.4  
     1.5      if (!(elfnote_dict = PyDict_New()))
     1.6  	goto out;
     1.7 -    for (i = 0; i < XEN_ELFNOTE_MAX; i++) {
     1.8 +    for (i = 0; i <= XEN_ELFNOTE_MAX; i++) {
     1.9  	switch (dom->parms.elf_notes[i].type) {
    1.10  	case XEN_ENT_NONE:
    1.11  	    continue;