2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
* normal/main.c (grub_normal_read_line): Fix off-by-one buffer overflow..
This commit is contained in:
parent
13b33fba6f
commit
08806a54c5
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
|
* normal/main.c (grub_normal_read_line): Fix off-by-one
|
||||||
|
buffer overflow.
|
||||||
|
|
||||||
2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
|
2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
* normal/main.c (grub_normal_execute): Replace "parser.sh" with
|
* normal/main.c (grub_normal_execute): Replace "parser.sh" with
|
||||||
|
|
|
@ -524,7 +524,7 @@ static grub_err_t
|
||||||
grub_normal_read_line (char **line, int cont)
|
grub_normal_read_line (char **line, int cont)
|
||||||
{
|
{
|
||||||
grub_parser_t parser = grub_parser_get_current ();
|
grub_parser_t parser = grub_parser_get_current ();
|
||||||
char prompt[sizeof("> ") - 1 + grub_strlen (parser->name)];
|
char prompt[sizeof("> ") + grub_strlen (parser->name)];
|
||||||
|
|
||||||
grub_sprintf (prompt, "%s> ", parser->name);
|
grub_sprintf (prompt, "%s> ", parser->name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue