From 5f92c8a110fd5197761cb606c182238b58946db0 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Tue, 26 Jun 2012 03:31:41 +0200 Subject: [PATCH] * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare signedness. --- ChangeLog | 5 +++++ grub-core/boot/decompressor/minilib.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 56e5d3e8f..af9e3ee47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-06-26 Vladimir Serbinenko + + * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare + signedness. + 2012-06-25 Vladimir Serbinenko * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of diff --git a/grub-core/boot/decompressor/minilib.c b/grub-core/boot/decompressor/minilib.c index f2a2ef7e5..94edfd561 100644 --- a/grub-core/boot/decompressor/minilib.c +++ b/grub-core/boot/decompressor/minilib.c @@ -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--) {