mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 13:05:18 +01:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22940
@ -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