* grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
parameters overflow.
This commit is contained in:
parent
61c874c51c
commit
41e9c57d89
2 changed files with 8 additions and 0 deletions
|
@ -144,6 +144,9 @@ grub_arg_show_help (grub_extcmd_t cmd)
|
|||
}
|
||||
}
|
||||
|
||||
if (spacing < 0)
|
||||
spacing = 3;
|
||||
|
||||
while (spacing--)
|
||||
grub_xputs (" ");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue