* util/grub-file.c (main): Fix sizeof usage.
This commit is contained in:
parent
a43b3e5d8e
commit
ee4450eb6f
2 changed files with 7 additions and 3 deletions
|
@ -55,7 +55,7 @@ main (int argc, char *argv[])
|
|||
|
||||
grub_util_host_init (&argc, &argv);
|
||||
|
||||
argv2 = xmalloc (argc * sizeof (argv));
|
||||
argv2 = xmalloc (argc * sizeof (argv2[0]));
|
||||
|
||||
if (argc == 2 && strcmp (argv[1], "--version") == 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue