* grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-03-26 14:14:59 +01:00
parent f4727da93f
commit 5ee04984d1
2 changed files with 13 additions and 0 deletions
ChangeLog
grub-core/fs

View file

@ -1,3 +1,7 @@
2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
Use libgeom on FreeBSD to detect partitions.

View file

@ -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