From 3fb18f094d6b59b9374f54a03033f66056f31e51 Mon Sep 17 00:00:00 2001 From: proski Date: Mon, 26 Jan 2009 04:35:57 +0000 Subject: [PATCH] 2009-01-26 Daniel Mierswa * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes. --- ChangeLog | 2 ++ fs/fat.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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