mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
over last_mounted as seen in image generated by mkfs.nilfs2. (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
This commit is contained in:
1 parent
dec8ed14b9
commit
d1a46f9abd
2 files changed
+9
-3
No files matched your search
@@ -126,8 +126,7 @@ struct grub_nilfs2_super_block
|
||||
grub_uint16_t s_checkpoint_size;
|
||||
grub_uint16_t s_segment_usage_size;
|
||||
grub_uint8_t s_uuid[16];
|
||||
char s_volume_name[16];
|
||||
char s_last_mounted[64];
|
||||
char s_volume_name[80];
|
||||
grub_uint32_t s_c_interval;
|
||||
grub_uint32_t s_c_block_max;
|
||||
grub_uint32_t s_reserved[192];
|
||||
@@ -1099,7 +1098,8 @@ grub_nilfs2_label (grub_device_t device, char **label)
|
||||
|
||||
data = grub_nilfs2_mount (disk);
|
||||
if (data)
|
||||
*label = grub_strndup (data->sblock.s_volume_name, 14);
|
||||
*label = grub_strndup (data->sblock.s_volume_name,
|
||||
sizeof (data->sblock.s_volume_name));
|
||||
else
|
||||
*label = NULL;
|
||||
|
||||
|
||||
Reference in new issue
Block a user