From b03135a62b706d7636ea9f8e5b257bfee1d092da Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Fri, 2 Feb 1996 20:43:11 +0000 Subject: [PATCH] I forget the fact that cd_read_toc reads toc header in any case --- sys/scsi/cd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index 0555c9435469..f661a85b3e1f 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992 * - * $Id: cd.c,v 1.62 1996/02/01 16:22:58 ache Exp $ + * $Id: cd.c,v 1.63 1996/02/01 17:35:15 ache Exp $ */ #include "opt_bounce.h" @@ -818,8 +818,8 @@ cd_ioctl(dev_t dev, int cmd, caddr_t addr, int flag, struct proc *p, error = cd_read_toc(unit, te->address_format, readtrack, - data.entries, - readlen); + (struct cd_toc_entry *)&data, + readlen + sizeof (*th)); if (error) break;