Back off a little with the #define thing a little for now. I made a

mistake somewhere.  (And don't want to track it down further.)
This commit is contained in:
rocky
2003-04-06 23:09:30 +00:00
parent 31e46f28ac
commit f54f7824e2

View File

@@ -1,5 +1,5 @@
/* /*
$Id: _cdio_bincue.c,v 1.7 2003/04/06 17:57:20 rocky Exp $ $Id: _cdio_bincue.c,v 1.8 2003/04/06 23:09:30 rocky Exp $
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org> Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2002,2003 Rocky Bernstein <rocky@panix.com> Copyright (C) 2002,2003 Rocky Bernstein <rocky@panix.com>
@@ -28,7 +28,7 @@
# include "config.h" # include "config.h"
#endif #endif
static const char _rcsid[] = "$Id: _cdio_bincue.c,v 1.7 2003/04/06 17:57:20 rocky Exp $"; static const char _rcsid[] = "$Id: _cdio_bincue.c,v 1.8 2003/04/06 23:09:30 rocky Exp $";
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
@@ -481,9 +481,9 @@ _read_mode2_sector (void *user_data, void *data, uint32_t lsn,
blocksize, 1); blocksize, 1);
if (mode2_form2) if (mode2_form2)
memcpy (data, buf + CDIO_CD_XA_HEADER, M2RAW_SECTOR_SIZE); memcpy (data, buf + 12 + 4, M2RAW_SECTOR_SIZE);
else else
memcpy (data, buf + CDIO_CD_XA_SYNC_HEADER, CDIO_CD_FRAMESIZE); memcpy (data, buf + 12 + 4 + 8, CDIO_CD_FRAMESIZE);
return 0; return 0;
} }