summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-10-23 02:38:55 +0000
committerRoland McGrath <roland@gnu.org>2004-10-23 02:38:55 +0000
commit066bcd5ae6c877bbfc92fa2084625380f2ea9764 (patch)
treea3fdcec8627f1f1dbe0f9a50b876cd71165147f2
parentd205bc090a9e3f99fa2612a91748a9c1ccada21b (diff)
(check_elf_phdr): Fix typo in last change.
-rw-r--r--exec/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/exec.c b/exec/exec.c
index e35aa7b2..05dc883e 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -929,7 +929,7 @@ check_elf_phdr (struct execdata *e, const ElfW(Phdr) *mapped_phdr)
if (!seen_phdr
&& (phdr->p_offset & -phdr->p_align) == 0 /* Sanity check. */
&& phdr->p_offset <= e->info.elf.phdr_addr
- && e->info.elf.phdr_addr - phdr->p_offset < phr->p_filesz)
+ && e->info.elf.phdr_addr - phdr->p_offset < phdr->p_filesz)
{
e->info.elf.phdr_addr += phdr->p_vaddr - phdr->p_offset;
seen_phdr = true;