* util/grub-file.c (main): Fix sizeof usage.

This commit is contained in:
Vladimir Serbinenko 2013-12-18 06:20:20 +01:00
parent a43b3e5d8e
commit ee4450eb6f
2 changed files with 7 additions and 3 deletions

View file

@ -1,8 +1,12 @@
2013-12-17 Vladimir Serbinenko <phcoder@gmail.com> 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-file.c (main): Fix sizeof usage.
2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
Silence spurious warning. Silence spurious warning.
2013-12-17 Vladimir Serbinenko <phcoder@gmail.com> 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
Remove check_nt_hiberfil as it's been superseeded by file command. Remove check_nt_hiberfil as it's been superseeded by file command.

View file

@ -55,7 +55,7 @@ main (int argc, char *argv[])
grub_util_host_init (&argc, &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) if (argc == 2 && strcmp (argv[1], "--version") == 0)
{ {