diff options
Diffstat (limited to 'sys/boot/pc98/libpc98/biosdisk.c')
-rw-r--r-- | sys/boot/pc98/libpc98/biosdisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/pc98/libpc98/biosdisk.c b/sys/boot/pc98/libpc98/biosdisk.c index d5c0a65..2d9afbd 100644 --- a/sys/boot/pc98/libpc98/biosdisk.c +++ b/sys/boot/pc98/libpc98/biosdisk.c @@ -86,7 +86,7 @@ struct open_disk { #endif struct disklabel od_disklabel; int od_nslices; /* slice count */ - struct pc98_partition od_slicetab[MAX_SLICES]; + struct pc98_partition od_slicetab[NEXTDOSPART]; }; /* @@ -778,7 +778,7 @@ bd_checkextended(struct open_disk *od, int slicenum) for (i = 0; i < NDOSPART; i++, dp++) { if (dp->dp_size == 0) continue; - if (od->od_nslices == MAX_SLICES) + if (od->od_nslices == NEXTDOSPART) goto done; dp->dp_start += base; bcopy(dp, &od->od_slicetab[od->od_nslices], sizeof(*dp)); |