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

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-02-28 09:38:14 +00:00
1 parent 1f95747a4f
commit 5f7ac4f0bc
1 file changed
+1 -1
+1 -1
View File
@@ -411,7 +411,7 @@ static PyObject *pyxc_linux_build(XcObject *self,
if (!(elfnote_dict = PyDict_New()))
goto out;
for (i = 0; i < XEN_ELFNOTE_MAX; i++) {
for (i = 0; i <= XEN_ELFNOTE_MAX; i++) {
switch (dom->parms.elf_notes[i].type) {
case XEN_ENT_NONE:
continue;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.