* grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of

grub_memcmp usage.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-10-23 22:55:32 +02:00
parent 7a5c54a437
commit d1e293bbfa
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
grub_memcmp usage.
2011-10-23 Vladimir Serbinenko <phcoder@gmail.com> 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-install.in: Add datarootdir as per automake manual * util/grub-install.in: Add datarootdir as per automake manual

View file

@ -397,7 +397,7 @@ test_header (grub_file_t file)
if (hcheck) if (hcheck)
{ {
checksum = grub_cpu_to_be32(checksum); checksum = grub_cpu_to_be32(checksum);
if (memcmp(&checksum, hcheck->read(context), sizeof(checksum)) != 0) if (grub_memcmp (&checksum, hcheck->read(context), sizeof(checksum)) != 0)
goto CORRUPTED; goto CORRUPTED;
} }