aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric L. Hernes <erich@FreeBSD.org>1997-02-20 03:22:30 +0000
committerEric L. Hernes <erich@FreeBSD.org>1997-02-20 03:22:30 +0000
commitdcda1aeb2f48ae4e8ec90a438810a18e5c3e89f7 (patch)
treef5830e6bad893a63314829c03883683515f33f9c
parentc52e467e03e623e6ca9fc3f592b7d146cd6486da (diff)
downloadsrc-dcda1aeb2f48ae4e8ec90a438810a18e5c3e89f7.tar.gz
src-dcda1aeb2f48ae4e8ec90a438810a18e5c3e89f7.zip
fix an `off by one' accounting error.
This fixes the sysinstall core-dump! Submitted by: HOSOBUCHI Noriyuki <hoso@buchi.tama.or.jp>
Notes
Notes: svn path=/head/; revision=22940
-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 3476d32473be..5672a1b2614a 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;