* grub-core/commands/menuentry.c (append_menu_entry): Don't rely on

args ending with NULL.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-12 13:53:12 +02:00
parent 788f1f3a85
commit faca6bec3b
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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])