diff options
| author | Peter Jones <pjones@redhat.com> | 2013-11-21 11:48:24 -0500 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2013-11-21 11:48:24 -0500 |
| commit | 28cd5c6b9a797cda2e166b90c29c972613080c1a (patch) | |
| tree | c1b49fc9d56c12e1109db6b36b453c382f47fdf2 | |
| parent | e724cfb1bf7834c21fbab2baff289e8633633c14 (diff) | |
| download | efi-boot-shim-28cd5c6b9a797cda2e166b90c29c972613080c1a.tar.gz efi-boot-shim-28cd5c6b9a797cda2e166b90c29c972613080c1a.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.c | 2 |
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; } |
