Fix typo from pull request #3

Section headers are located at shoff, not phoff.
This commit is contained in:
Christopher Cole 2015-07-24 05:28:59 +00:00
parent a7e46b1818
commit a49eb2207e

View File

@ -185,7 +185,7 @@ impl File {
// Parse the section headers
let mut name_idxs: Vec<u32> = Vec::new();
try!(io_file.seek(io::SeekFrom::Start(phoff)));
try!(io_file.seek(io::SeekFrom::Start(shoff)));
for _ in 0..shnum {
let name: String = String::new();
let mut shtype: types::SectionType;