Skip to content

Commit

Permalink
tools/embed: fix segments pointer return
Browse files Browse the repository at this point in the history
I copied the hdr function and changed the cast but apparently forgot
to change the pointer it returns. Weirdly, the tests passed regardless.
  • Loading branch information
matheusmoreira committed Aug 22, 2024
1 parent f51caeb commit f8d831b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/tools/lone-embed.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ hdr(struct elf *elf)
static struct lone_elf_segment *
segs(struct elf *elf)
{
return (struct lone_elf_segment *) elf->header.pointer;
return (struct lone_elf_segment *) elf->segments.memory.pointer;
}

static size_t pht_size_for(struct elf *elf, size_t entry_count)
Expand Down

0 comments on commit f8d831b

Please sign in to comment.