2010-11-18 Robert Millan <rmh@gnu.org>
* grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp() with grub_memcmp().
This commit is contained in:
parent
41cc919ef7
commit
9dfe92d07a
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-11-18 Robert Millan <rmh@gnu.org>
|
||||||
|
|
||||||
|
* grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
|
||||||
|
with grub_memcmp().
|
||||||
|
|
||||||
2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
|
2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/normal/menu_entry.c (print_up): Fix displacement of up
|
* grub-core/normal/menu_entry.c (print_up): Fix displacement of up
|
||||||
|
|
|
@ -51,7 +51,7 @@ grub_btrfs_mount (grub_disk_t disk)
|
||||||
&data->sblock) != GRUB_ERR_NONE)
|
&data->sblock) != GRUB_ERR_NONE)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
if (grub_strncmp ((char *) data->sblock.signature, BTRFS_SIGNATURE, sizeof (BTRFS_SIGNATURE) - 1))
|
if (grub_memcmp ((char *) data->sblock.signature, BTRFS_SIGNATURE, sizeof (BTRFS_SIGNATURE) - 1))
|
||||||
{
|
{
|
||||||
grub_error (GRUB_ERR_BAD_FS, "not a Btrfs filesystem");
|
grub_error (GRUB_ERR_BAD_FS, "not a Btrfs filesystem");
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
Loading…
Reference in a new issue