summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorerich <erich@FreeBSD.org>1997-02-20 03:22:30 +0000
committererich <erich@FreeBSD.org>1997-02-20 03:22:30 +0000
commitd1d1b1cbed54e15cff98b11f845ae927b290a66b (patch)
treef5830e6bad893a63314829c03883683515f33f9c /release
parent27eb6d09a03b6d51d025fafa9e46e0f64544d722 (diff)
downloadFreeBSD-src-d1d1b1cbed54e15cff98b11f845ae927b290a66b.zip
FreeBSD-src-d1d1b1cbed54e15cff98b11f845ae927b290a66b.tar.gz
fix an `off by one' accounting error.
This fixes the sysinstall core-dump! Submitted by: HOSOBUCHI Noriyuki <hoso@buchi.tama.or.jp>
Diffstat (limited to 'release')
-rw-r--r--release/sysinstall/uc_scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/sysinstall/uc_scsi.c b/release/sysinstall/uc_scsi.c
index 3476d32..5672a1b 100644
--- a/release/sysinstall/uc_scsi.c
+++ b/release/sysinstall/uc_scsi.c
@@ -163,7 +163,7 @@ get_scsi_info(struct kernel *kp){
sbp=(struct uc_scsibus *)realloc(sbp, sizeof(struct uc_scsibus)*
(nscsibus+1));
- sbpc=sbp+nscsibus+1;
+ sbpc=sbp+nscsibus;
bzero(sbpc, sizeof(struct uc_scsibus));
kp->scsi_devp=sp;
OpenPOWER on IntegriCloud