[syslinux] port syslinux isohybrid perl script to C

Geert Stappers stappers at stappers.nl
Thu Apr 29 13:20:20 PDT 2010


Op 20100429 om 10:50 schreef P J P:
> On Thu, 29/4/10, H. Peter Anvin <hpa at zytor.com> wrote:
> > You need to fix your endianness problems, at the very least.
> 
>   Endianness problem while doing memcpy?
> 

I'm mostly a sysadmin but it looks to me that lines like

+    uint32_t psize = 0, tmp = 0;
+    psize = c * head * sector - offset;
+            memcpy(&mbr[12], &psize, sizeof(psize));

indeed do have an endianness problem
 

Cheers
Geert Stappers




More information about the Syslinux mailing list