From dcda1aeb2f48ae4e8ec90a438810a18e5c3e89f7 Mon Sep 17 00:00:00 2001 From: "Eric L. Hernes" Date: Thu, 20 Feb 1997 03:22:30 +0000 Subject: [PATCH] fix an `off by one' accounting error. This fixes the sysinstall core-dump! Submitted by: HOSOBUCHI Noriyuki --- release/sysinstall/uc_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;