std.elf: actually pass the pointer

This commit is contained in:
Asherah Connor 2021-01-13 21:01:24 +11:00
parent 1cea88917c
commit 49ab6bb429

View File

@ -398,7 +398,7 @@ pub const Header = struct {
pub fn readHeader(file: File) !Header {
var hdr_buf: [@sizeOf(Elf64_Ehdr)]u8 align(@alignOf(Elf64_Ehdr)) = undefined;
try preadNoEof(file, &hdr_buf, 0);
return Header.parse(hdr_buf);
return Header.parse(&hdr_buf);
}
pub const ProgramHeaderIterator = struct {