* grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to

sizeof while on it.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-01-31 22:12:57 +01:00
parent 9c08ad8707
commit 10476bb0db
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
sizeof while on it.
2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...

View file

@ -892,7 +892,8 @@ grub_ext2_label (grub_device_t device, char **label)
data = grub_ext2_mount (disk);
if (data)
*label = grub_strndup (data->sblock.volume_name, 14);
*label = grub_strndup (data->sblock.volume_name,
sizeof (data->sblock.volume_name));
else
*label = NULL;