On Friday 04 January 2008 19:02:30 Stuart Brady wrote: > On Fri, Jan 04, 2008 at 06:25:25PM -0600, Rob Landley wrote: > > On Friday 04 January 2008 04:02:07 Carlo Marcelo Arenas Belon wrote: > > > > - buf[7] = total_sectors <= 1433600 ? 0x08 : 0x10; /* > > > > current profile */ > > > > Where does the constant come from, anyway? > > 1433600? Seems it's the number of 512 KiB blocks in a 700 MiB CD image > (700 * 1024 * 2).
Except that according to http://en.wikipedia.org/wiki/CD-ROM it's actually 703 and 1/8 binary megabytes (360,000 sectors *2048 bytes), which would be 1440000. And we all know wikipedia's never wrong: http://www.theonion.com/content/node/50902 Rob -- "One of my most productive days was throwing away 1000 lines of code." - Ken Thompson.