* grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
args ending with NULL.
This commit is contained in:
parent
788f1f3a85
commit
faca6bec3b
2 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,9 @@
|
|||
2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
|
||||
args ending with NULL.
|
||||
|
||||
2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
|
||||
pointer.
|
||||
|
|
|
@ -128,7 +128,7 @@ append_menu_entry (int argc, const char **args, char **classes,
|
|||
if (! menu_args)
|
||||
goto fail;
|
||||
|
||||
for (i = 0; args[i]; i++)
|
||||
for (i = 0; i < argc; i++)
|
||||
{
|
||||
menu_args[i] = grub_strdup (args[i]);
|
||||
if (! menu_args[i])
|
||||
|
|
Loading…
Add table
Reference in a new issue