diff options
| author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2008-07-01 11:18:51 +0000 |
|---|---|---|
| committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2008-07-01 11:18:51 +0000 |
| commit | bb0e0b0f50b25357b39fbd4a6684459d6e92f729 (patch) | |
| tree | 5d296ee197cfee685e49998ceab7c200327e659f /sys/boot | |
| parent | fe878019faaa17cf9b387ba48de5e5a2a36c59de (diff) | |
Notes
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/i386/boot2/boot2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/i386/boot2/boot2.c b/sys/boot/i386/boot2/boot2.c index 2eb8b68e82f3..753f0b1e328a 100644 --- a/sys/boot/i386/boot2/boot2.c +++ b/sys/boot/i386/boot2/boot2.c @@ -472,7 +472,7 @@ parse() dsk.slice = WHOLE_DISK_SLICE; if (arg[1] == ',') { dsk.slice = *arg - '0' + 1; - if (dsk.slice > NDOSPART) + if (dsk.slice > NDOSPART + 1) return -1; arg += 2; } |
