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:
Robert Millan 2009-11-25 03:48:33 +00:00
parent 13b33fba6f
commit 08806a54c5
2 changed files with 6 additions and 1 deletions

View file

@ -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>
* normal/main.c (grub_normal_execute): Replace "parser.sh" with

View file

@ -524,7 +524,7 @@ static grub_err_t
grub_normal_read_line (char **line, int cont)
{
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);