2009-01-26 Daniel Mierswa <impulze@impulze.org>

* fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
This commit is contained in:
proski 2009-01-26 04:35:57 +00:00
parent 336e1fb9ea
commit 3fb18f094d
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
2009-01-26 Daniel Mierswa <impulze@impulze.org> 2009-01-26 Daniel Mierswa <impulze@impulze.org>
* fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
* commands/search.c (search_fs_uuid): Ignore case of the UUID. * commands/search.c (search_fs_uuid): Ignore case of the UUID.
* kern/misc.c (grub_strcasecmp): New function. * kern/misc.c (grub_strcasecmp): New function.

View file

@ -841,7 +841,7 @@ grub_fat_uuid (grub_device_t device, char **uuid)
if (data) if (data)
{ {
*uuid = grub_malloc (sizeof ("xxxx-xxxx")); *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); (grub_uint16_t) data->uuid);
} }
else else