fix an `off by one' accounting error.

This fixes the sysinstall core-dump!
Submitted by:	HOSOBUCHI Noriyuki <hoso@buchi.tama.or.jp>
This commit is contained in:
Eric L. Hernes 1997-02-20 03:22:30 +00:00
parent c52e467e03
commit dcda1aeb2f

View File

@ -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;