Matthijs Kooijman writes:
> Hi folks,
>
> I believe I found a bug in the dos partition table writer. Let me start
> with the cause. There's this bit of code:
>
> if (!table->boot_code[0]) {
> memset (table->boot_code, 0, 512);
> memcpy (table->boot_code, MBR_BOOT_CODE, sizeof
> (MBR_BOOT_CODE));
> }
Yikes! Clearly this should have been sizeof( table->boot_code ) rather
than 512.
