From ee4450eb6f06eaad3ac46e4d786a4d0a2c82fb07 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Wed, 18 Dec 2013 06:20:20 +0100 Subject: [PATCH] * util/grub-file.c (main): Fix sizeof usage. --- ChangeLog | 8 ++++++-- util/grub-file.c | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a756c0f8d..e696b4f38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,12 @@ -2013-12-17 Vladimir Serbinenko +2013-12-18 Vladimir Serbinenko + + * util/grub-file.c (main): Fix sizeof usage. + +2013-12-18 Vladimir Serbinenko Silence spurious warning. -2013-12-17 Vladimir Serbinenko +2013-12-18 Vladimir Serbinenko Remove check_nt_hiberfil as it's been superseeded by file command. diff --git a/util/grub-file.c b/util/grub-file.c index 2591ecdd9..23cb0439c 100644 --- a/util/grub-file.c +++ b/util/grub-file.c @@ -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) {