Well, if your DOS sector size is greater than 512 bytes, you'll be out
of luck. On my machine it is 1024 bytes, and I changed dos/dos.h. The
change was to the definition of SECSZ. I put:
#define SECSZ (bootb.secsize0 + (bootb.secsize1 << 8))
You'll also have to change main.c (towards the bottom of main()),
where it allocates the sector buffer, and reads the bootblock.
ie.
secbuf = malloc(1024);
....
if(read(blkdev,secbuf,512) != 512) {
...
Worked for me.....
I hardcoded the sector buffer malloc to 1024 bytes, and the read() to
512 bytes.
Received on Mon Aug 23 16:21:46 1993
This archive was generated by hypermail 2.1.8 : Wed Sep 21 2005 - 19:37:12 PDT