summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2013-11-15 09:21:53 -0500
committerPeter Jones <pjones@redhat.com>2013-11-21 11:48:24 -0500
commitaf25679e166da9bd32a0ed7fbf67a408dda7f71a (patch)
treec1b49fc9d56c12e1109db6b36b453c382f47fdf2
parent27129a5a05d1947e6f7479766e8281d50d6031f6 (diff)
downloadefi-boot-shim-af25679e166da9bd32a0ed7fbf67a408dda7f71a.tar.gz
efi-boot-shim-af25679e166da9bd32a0ed7fbf67a408dda7f71a.zip
Fix wrong sizeof().
CHAR16* vs CHAR16**, so the result is the same on all platforms. Detected by coverity. Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--lib/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/shell.c b/lib/shell.c
index 51de4e0d..7337834a 100644
--- a/lib/shell.c
+++ b/lib/shell.c
@@ -35,7 +35,7 @@ argsplit(EFI_HANDLE image, int *argc, CHAR16*** ARGV)
(*argc)++; /* we counted spaces, so add one for initial */
- *ARGV = AllocatePool(*argc * sizeof(*ARGV));
+ *ARGV = AllocatePool(*argc * sizeof(**ARGV));
if (!*ARGV) {
return EFI_OUT_OF_RESOURCES;
}