I forget the fact that cd_read_toc reads toc header in any case

This commit is contained in:
Andrey A. Chernov 1996-02-02 20:43:11 +00:00
parent fd04d24d6b
commit b03135a62b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13860

View File

@ -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;