* grub-core/commands/legacycfg.c (legacy_file): Trim the line.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-01-10 19:25:00 +01:00
parent ce6bb3ee31
commit 47a77af5e8
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/legacycfg.c (legacy_file): Trim the line.
2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-menulst2cfg.c (main): Trim the line.

View file

@ -83,9 +83,13 @@ legacy_file (const char *filename)
{
char *oldname = NULL;
char *newsuffix;
char *ptr;
for (ptr = buf; *ptr && grub_isspace (*ptr); ptr++);
oldname = entryname;
parsed = grub_legacy_parse (buf, &entryname, &newsuffix);
parsed = grub_legacy_parse (ptr, &entryname, &newsuffix);
grub_free (buf);
buf = NULL;
if (newsuffix)
{