* grub-core/lib/arg.c (grub_arg_show_help): Correctly handle

parameters overflow.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-20 16:12:15 +02:00
parent 61c874c51c
commit 41e9c57d89
2 changed files with 8 additions and 0 deletions

View file

@ -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> 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
* .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and

View file

@ -144,6 +144,9 @@ grub_arg_show_help (grub_extcmd_t cmd)
} }
} }
if (spacing < 0)
spacing = 3;
while (spacing--) while (spacing--)
grub_xputs (" "); grub_xputs (" ");