]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 23 Oct 2011 20:55:32 +0000 (22:55 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 23 Oct 2011 20:55:32 +0000 (22:55 +0200)
grub_memcmp usage.

ChangeLog
grub-core/io/lzopio.c

index 17db9da19089d22287f8b849ff740c36fe0a6db5..5899c1e95c3f63390dd048e769ef5ab5a5cc0f4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * util/grub-install.in: Add datarootdir as per automake manual
index 02a70f4d88a0df8c8d511fff2c73ae06720049d4..bd6f8e73893e57d7beab2fd3ae7f3d3c86394a06 100644 (file)
@@ -397,7 +397,7 @@ test_header (grub_file_t file)
   if (hcheck)
   {
     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;
   }