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:
parent
7743527799
commit
72b9658be2
2 changed files with 9 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue