Fixed potential SCSI ID overruns in the SCSI hard diks, CD-ROM, and Iomega ZIP codes.

This commit is contained in:
OBattler
2020-01-15 00:49:42 +01:00
parent 34bf074e8d
commit 2b94cd2b96
3 changed files with 3 additions and 3 deletions

View File

@@ -1212,7 +1212,7 @@ scsi_disk_hard_reset(void)
scsi_disk_log("SCSI disk hard_reset drive=%d\n", c);
/* Make sure to ignore any SCSI disk that has an out of range ID. */
if (hdd[c].scsi_id > SCSI_ID_MAX)
if (hdd[c].scsi_id >= SCSI_ID_MAX)
continue;
/* Make sure to ignore any SCSI disk whose image file name is empty. */