]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 20 Sep 2010 14:12:15 +0000 (16:12 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 20 Sep 2010 14:12:15 +0000 (16:12 +0200)
parameters overflow.

ChangeLog
grub-core/lib/arg.c

index 4688c50144069c79ba770d6614444782dc235051..875edec38d430ff68727fa67d395387cd6fdc916 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
+       parameters overflow.
+
 2010-09-20  Colin Watson  <cjwatson@ubuntu.com>
 
        * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
index f487de7ad938f5fe6582fdbb8ded234c945a7e99..dabf4e8ce002c3c707ee85bbea42eb1df3d26aa3 100644 (file)
@@ -144,6 +144,9 @@ grub_arg_show_help (grub_extcmd_t cmd)
                }
            }
 
+         if (spacing < 0)
+           spacing = 3;
+
          while (spacing--)
            grub_xputs (" ");