This commit is contained in:
John Reiser
2006-07-02 19:28:19 -07:00
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -125,7 +125,7 @@ bool PackVmlinuxI386::canPack()
return false;
}
phdri = new Elf32_Phdr[(unsigned) ehdri.e_phnum];
phdri = new Elf_LE32_Phdr[(unsigned) ehdri.e_phnum];
fi->seek(ehdri.e_phoff, SEEK_SET);
fi->readx(phdri, ehdri.e_phnum * sizeof(*phdri));
@@ -360,8 +360,8 @@ int PackVmlinuxI386::canUnpack()
// find the .shstrtab section
char shstrtab[40];
Elf32_Shdr *p, *p_shstrtab=0;
shdri = new Elf32_Shdr[(unsigned) ehdri.e_shnum];
Elf_LE32_Shdr *p, *p_shstrtab=0;
shdri = new Elf_LE32_Shdr[(unsigned) ehdri.e_shnum];
fi->seek(ehdri.e_shoff, SEEK_SET);
fi->readx(shdri, ehdri.e_shnum * sizeof(*shdri));
int j;