diff options
author | 2012-01-31 12:24:27 +0000 | |
---|---|---|
committer | 2012-01-31 12:24:27 +0000 | |
commit | 8896925b377ffc52a05092c3511c68b7a7f10b52 (patch) | |
tree | f372deb90e6756d6d583a4c966e1b1ad5c2706fc /src/lib | |
parent | 2cbebdf78227cad3b08a5ee05f427d34b5ba6d61 (diff) |
Sync with MAME (nw)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/formats/ti99_dsk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/formats/ti99_dsk.c b/src/lib/formats/ti99_dsk.c index 5adbde4775f..dcd5186cde7 100644 --- a/src/lib/formats/ti99_dsk.c +++ b/src/lib/formats/ti99_dsk.c @@ -907,7 +907,7 @@ static floperr_t ti99_sdf_get_indexed_sector_info(floppy_image_legacy *floppy, i *sector = sector_index; if (flags) *flags = 0; - if (sector_index > tag->sectors) + if (sector_index >= tag->sectors) { return FLOPPY_ERROR_SEEKERROR; } |