mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
This commit is contained in:
1 parent
f4727da93f
commit
5ee04984d1
2 files changed
+13
No files matched your search
@@ -808,6 +808,15 @@ grub_iso9660_label (grub_device_t device, char **label)
|
||||
((grub_uint16_t *) &data->voldesc.volname, 16);
|
||||
else
|
||||
*label = grub_strndup ((char *) data->voldesc.volname, 32);
|
||||
if (*label)
|
||||
{
|
||||
char *ptr;
|
||||
for (ptr = *label; *ptr;ptr++);
|
||||
ptr--;
|
||||
while (ptr >= *label && *ptr == ' ')
|
||||
*ptr-- = 0;
|
||||
}
|
||||
|
||||
grub_free (data);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user