From 9dff9581bdc9590f0069a4bef3434a2ba15f0c38 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 25 Dec 2016 22:57:14 +0100 Subject: [PATCH] Fixed the fix. --- src/cdrom-ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdrom-ioctl.c b/src/cdrom-ioctl.c index 1df60b4d1..2b33f73d7 100644 --- a/src/cdrom-ioctl.c +++ b/src/cdrom-ioctl.c @@ -554,7 +554,7 @@ static int ioctl_read_track_information(uint8_t *in_cdb, uint8_t *b) ioctl_open(0); memcpy(cdb, in_cdb, 12); - ret = SCSICommand(cdb, buf, 65536); + ret = SCSICommand(cdb, buf, 65535); if (!ret) { @@ -884,7 +884,7 @@ static void ioctl_readtoc_raw(uint8_t *b, int msf, int maxlen) cdb[8] = maxlen & 0xff; cdb[9] = cdb[10] = cdb[11] = 0; - SCSICommand(cdb, buf, 65536); + SCSICommand(cdb, buf, 65535); len = buf[0]; len <<= 8;