1 | --- src/p_mach.cpp Sun Sep 27 20:08:49 2009 +0200 |
---|
2 | +++ src/p_mach.cpp Thu Oct 08 12:53:02 2009 -0700 |
---|
3 | @@ -1170,6 +1170,7 @@ |
---|
4 | |
---|
5 | ph.u_file_size = fat_head.arch[j].size; |
---|
6 | fi->set_extent(fat_head.arch[j].offset, fat_head.arch[j].size); |
---|
7 | + fi->seek(0, SEEK_SET); |
---|
8 | switch (fat_head.arch[j].cputype) { |
---|
9 | case PackMachFat::CPU_TYPE_I386: { |
---|
10 | typedef N_Mach::Mach_header<MachClass_LE32::MachITypes> Mach_header; |
---|
11 | @@ -1237,6 +1238,7 @@ |
---|
12 | |
---|
13 | ph.u_file_size = fat_head.arch[j].size; |
---|
14 | fi->set_extent(fat_head.arch[j].offset, fat_head.arch[j].size); |
---|
15 | + fi->seek(0, SEEK_SET); |
---|
16 | switch (fat_head.arch[j].cputype) { |
---|
17 | case PackMachFat::CPU_TYPE_I386: { |
---|
18 | N_Mach::Mach_header<MachClass_LE32::MachITypes> hdr; |
---|
19 | @@ -1294,6 +1296,7 @@ |
---|
20 | } |
---|
21 | for (unsigned j=0; j < fat_head.fat.nfat_arch; ++j) { |
---|
22 | fi->set_extent(fat_head.arch[j].offset, fat_head.arch[j].size); |
---|
23 | + fi->seek(0, SEEK_SET); |
---|
24 | switch (arch[j].cputype) { |
---|
25 | default: return false; |
---|
26 | case PackMachFat::CPU_TYPE_I386: { |
---|
27 | @@ -1335,6 +1338,7 @@ |
---|
28 | } |
---|
29 | for (unsigned j=0; j < fat_head.fat.nfat_arch; ++j) { |
---|
30 | fi->set_extent(fat_head.arch[j].offset, fat_head.arch[j].size); |
---|
31 | + fi->seek(0, SEEK_SET); |
---|
32 | switch (arch[j].cputype) { |
---|
33 | default: return false; |
---|
34 | case PackMachFat::CPU_TYPE_I386: { |
---|