]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Sep 2010 11:53:12 +0000 (13:53 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 12 Sep 2010 11:53:12 +0000 (13:53 +0200)
args ending with NULL.

ChangeLog
grub-core/commands/menuentry.c

index f82f1246761bfc34ddef1613aed2628d798fcda5..79fd795563ca29b1acbda748ba9e5ad974071cfb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index fc1ae71c7027d03bc10d83950744a173c965a873..c28c6ef6fd723a9a533174b91d32dc871d684064 100644 (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])