diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2000-07-21 18:26:20 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2000-07-21 18:26:20 +0000 |
| commit | fe81981fdb187440a8f1af779a37c8773cf860c0 (patch) | |
| tree | 265b7676668ec08b6d09f47c42ac3535bd689fc7 | |
| parent | 0ce76c7dd039ed369bdbdb030b39f31986fc3df6 (diff) | |
Notes
| -rw-r--r-- | sbin/fdisk/fdisk.c | 2 | ||||
| -rw-r--r-- | sbin/i386/fdisk/fdisk.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index 723db8d1d414..ae339aae840a 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -794,7 +794,7 @@ read_s0() warnx("can't read fdisk partition table"); return -1; } - if (*(int *)&mboot.bootinst[MBRSIGOFF] != BOOT_MAGIC) { + if (*(uint16_t *)&mboot.bootinst[MBRSIGOFF] != BOOT_MAGIC) { warnx("invalid fdisk partition table found"); /* So should we initialize things */ return -1; diff --git a/sbin/i386/fdisk/fdisk.c b/sbin/i386/fdisk/fdisk.c index 723db8d1d414..ae339aae840a 100644 --- a/sbin/i386/fdisk/fdisk.c +++ b/sbin/i386/fdisk/fdisk.c @@ -794,7 +794,7 @@ read_s0() warnx("can't read fdisk partition table"); return -1; } - if (*(int *)&mboot.bootinst[MBRSIGOFF] != BOOT_MAGIC) { + if (*(uint16_t *)&mboot.bootinst[MBRSIGOFF] != BOOT_MAGIC) { warnx("invalid fdisk partition table found"); /* So should we initialize things */ return -1; |
