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:
parent
c52e467e03
commit
dcda1aeb2f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user