* grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
This commit is contained in:
parent
f4727da93f
commit
5ee04984d1
2 changed files with 13 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue