+2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
+ (test_header): Likewise.
+
2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
Fix --help formatting.
sizeof (lzopio->block.ucheck))
return -1;
- lzopio->block.ucheck = grub_be_to_cpu32 (lzopio->block.ucheck);
+ lzopio->block.ucheck = lzopio->block.ucheck;
}
/* Read checksum of compressed data. */
sizeof (lzopio->block.ccheck))
return -1;
- lzopio->block.ccheck = grub_be_to_cpu32 (lzopio->block.ccheck);
+ lzopio->block.ccheck = lzopio->block.ccheck;
}
}
if (hcheck)
{
- checksum = grub_cpu_to_be32(checksum);
+ checksum = checksum;
if (grub_memcmp (&checksum, hcheck->read(context), sizeof(checksum)) != 0)
goto CORRUPTED;
}