summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/gptboot
diff options
context:
space:
mode:
authorrnordier <rnordier@FreeBSD.org>1999-06-19 20:50:38 +0000
committerrnordier <rnordier@FreeBSD.org>1999-06-19 20:50:38 +0000
commitf3313ef5a08a4dbb3b76e564ecb2d96f762eb8ae (patch)
treeee76f68dd9e0a3827cd04a40d28600f3524dd19c /sys/boot/i386/gptboot
parent5f25113ddbd88d3d21cd829269b9676c78bbaade (diff)
downloadFreeBSD-src-f3313ef5a08a4dbb3b76e564ecb2d96f762eb8ae.zip
FreeBSD-src-f3313ef5a08a4dbb3b76e564ecb2d96f762eb8ae.tar.gz
Fix use of e_phoff in place of e_phnum.
Diffstat (limited to 'sys/boot/i386/gptboot')
-rw-r--r--sys/boot/i386/gptboot/gptboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c
index b711c28..67c5ec8 100644
--- a/sys/boot/i386/gptboot/gptboot.c
+++ b/sys/boot/i386/gptboot/gptboot.c
@@ -14,7 +14,7 @@
*/
/*
- * $Id: boot2.c,v 1.22 1999/04/04 21:15:41 obrien Exp $
+ * $Id: boot2.c,v 1.23 1999/04/05 07:36:30 rnordier Exp $
*/
#include <sys/param.h>
@@ -251,7 +251,7 @@ load(const char *fname)
}
} else {
fs_off = hdr.eh.e_phoff;
- for (j = i = 0; i < hdr.eh.e_phoff && j < 2; i++) {
+ for (j = i = 0; i < hdr.eh.e_phnum && j < 2; i++) {
if (xfsread(ino, ep + j, sizeof(ep[0])))
return;
if (ep[j].p_type == PT_LOAD)
OpenPOWER on IntegriCloud