2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>

* kern/parser.c (grub_parser_execute): Fix a bug causing truncated
	entries on failed boot.
This commit is contained in:
phcoder 2009-07-25 15:13:07 +00:00
parent 7743527799
commit 72b9658be2
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
* kern/parser.c (grub_parser_execute): Fix a bug causing truncated
entries on failed boot.
2009-07-25 Felix Zielcke <fzielcke@z-51.de>
* kern/file.c (grub_file_open): Fix an error check.

View file

@ -245,10 +245,12 @@ grub_parser_execute (char *source)
p = grub_strchr (source, '\n');
if (p)
*(p++) = 0;
*p = 0;
*line = grub_strdup (source);
source = p;
if (p)
*p = '\n';
source = p ? p + 1 : 0;
return 0;
}