grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove trailing space from FAT label


From: Robert Millan
Subject: Re: Remove trailing space from FAT label
Date: Sat, 7 Feb 2009 23:36:28 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Feb 04, 2009 at 01:01:55PM +0100, phcoder wrote:
> Hello. Here is the patch to remove trailing spaces from FAT label. These 
> spaces generally aren't considiered to be part of label
> Thanks
> Vladimir 'phcoder' Serbinenko

> Index: fs/fat.c
> ===================================================================
> --- fs/fat.c  (revision 1973)
> +++ fs/fat.c  (working copy)
> @@ -809,7 +809,13 @@
>  
>        if (dir.attr == GRUB_FAT_ATTR_VOLUME_ID)
>       {
> -       *label = grub_strndup ((char *) dir.name, 11);
> +       int labellen = 0, i;
> +       for (i = 0; i < 11; i++)

Please use a descriptive macro instead of hardcoding 11.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]