From: proski Date: Mon, 26 Jan 2009 04:35:57 +0000 (+0000) Subject: 2009-01-26 Daniel Mierswa X-Git-Tag: 1.98~1161 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fb18f094d6b59b9374f54a03033f66056f31e51;p=thirdparty%2Fgrub.git 2009-01-26 Daniel Mierswa * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes. --- diff --git a/ChangeLog b/ChangeLog index bab56b233..9f37ae986 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2009-01-26 Daniel Mierswa + * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes. + * commands/search.c (search_fs_uuid): Ignore case of the UUID. * kern/misc.c (grub_strcasecmp): New function. diff --git a/fs/fat.c b/fs/fat.c index 8db176009..d62adbc27 100644 --- a/fs/fat.c +++ b/fs/fat.c @@ -841,7 +841,7 @@ grub_fat_uuid (grub_device_t device, char **uuid) if (data) { *uuid = grub_malloc (sizeof ("xxxx-xxxx")); - grub_sprintf (*uuid, "%04x-%04x", (grub_uint16_t) (data->uuid >> 8), + grub_sprintf (*uuid, "%04x-%04x", (grub_uint16_t) (data->uuid >> 16), (grub_uint16_t) data->uuid); } else