Browse Source

fix executable.c

Signed-off-by: Graham MacDonald <grahamamacdonald@gmail.com>
Graham MacDonald 4 years ago
parent
commit
85305c12ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sys/src/libmach/executable.c

+ 1 - 1
sys/src/libmach/executable.c

@@ -290,7 +290,7 @@ static int
 elfdotout(int fd, Fhdr *fp, ExecHdr *hp)
 {
 	/* bitswap the header according to the DATA format */
-	E64hdr ep = &hp->e.E64hdr;
+	E64hdr *ep = &hp->e.E64hdr;
 	if(ep->ident[CLASS] == ELFCLASS64)
 		return elf64dotout(fd, fp, hp);