]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 26 Jun 2012 01:31:41 +0000 (03:31 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Tue, 26 Jun 2012 01:31:41 +0000 (03:31 +0200)
signedness.

ChangeLog
grub-core/boot/decompressor/minilib.c

index 56e5d3e8fe574ec5c99a7beffeac25bab758f51c..af9e3ee47e03556fb8bd3b7b51847e2e3ef3c66c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
+       signedness.
+
 2012-06-25  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
index f2a2ef7e5cb53d2945159fd3af984ea2c96e96f4..94edfd5618726b52736e66ffae3649d26add0d89 100644 (file)
@@ -53,8 +53,8 @@ grub_memmove (void *dest, const void *src, grub_size_t n)
 int
 grub_memcmp (const void *s1, const void *s2, grub_size_t n)
 {
-  const char *t1 = s1;
-  const char *t2 = s2;
+  const unsigned char *t1 = s1;
+  const unsigned char *t2 = s2;
 
   while (n--)
     {