[syslinux] Bugfix for memdisk (3.20pre4)

John Murphy JohnM at trutest.co.nz
Wed Jan 11 13:44:33 PST 2006


Hi,

This is a completely harmless bug as it has no effect (since the variable is not used in the final calculations).  But it is simple and safe to fix.

memdisk/setup.c, line 449, currently does:

	c = ptab[i].start_c + (ptab[i].start_s >> 6);


That should be:

	c = ptab[i].start_c + ((ptab[i].start_s & 0xc0)<<2);


A similiar fix applies to line 457.

Cheers,

	John.






| John Murphy, R&D Software Engineer, Tru-Test Ltd.
| Phone: +64-9-9788712,  Fax: +64-9-9788889, <johnm at trutest.co.nz>
| Tru-Test Ltd, P.O.Box 51-078, Pakuranga, Auckland, New Zealand





More information about the Syslinux mailing list